Searched refs:random (Results 1 - 25 of 197) sorted by relevance

12345678

/openbsd-current/games/random/
H A DMakefile3 PROG= random
4 MAN= random.6
/openbsd-current/regress/lib/libc/arch/alpha/divremtest/
H A Dmktestcases.c47 (random() & ((random() & random()) | 0x80000000));
49 n1 |= (unsigned)(random() & random() & random());
52 (random() & ((random() & random()) | 0x80000000));
54 n2 |= (unsigned)(random()
[all...]
/openbsd-current/games/trek/
H A Dranf.c44 t = random();
53 t = random() & 077777;
/openbsd-current/sys/arch/arm64/stand/efiboot/
H A Defirng.c66 UINT8 *random; local
74 random = alloc(buflen);
76 status = rng->GetRNG(rng, NULL, buflen, random);
84 buf[i] ^= random[i];
87 free(random, buflen);
/openbsd-current/sys/arch/amd64/stand/efiboot/
H A Defirng.c66 UINT8 *random; local
74 random = alloc(buflen);
76 status = rng->GetRNG(rng, NULL, buflen, random);
84 buf[i] ^= random[i];
87 free(random, buflen);
/openbsd-current/sys/arch/riscv64/stand/efiboot/
H A Defirng.c66 UINT8 *random; local
74 random = alloc(buflen);
76 status = rng->GetRNG(rng, NULL, buflen, random);
84 buf[i] ^= random[i];
87 free(random, buflen);
/openbsd-current/regress/sys/sys/tree/rb/
H A DMakefile3 NAMED_TESTS = random-inserts sequential-inserts \
4 sequential-removes random-removes remove-nfind \
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Dfork.t63 OPTION random
82 OPTION random
104 OPTION random
132 OPTION random
141 OPTION random
159 OPTION random
195 OPTION random
213 OPTION random
223 OPTION random
250 OPTION random
[all...]
/openbsd-current/games/hack/
H A Drnd.c64 #define RND(x) ((random()>>3) % x)
/openbsd-current/regress/lib/libradius/
H A Dtest00.c15 code = random();
16 id = random();
/openbsd-current/sys/lib/libkern/
H A Drandom.c1 /* $OpenBSD: random.c,v 1.10 2017/09/08 05:36:53 deraadt Exp $ */
2 /* $NetBSD: random.c,v 1.2 1994/10/26 06:42:42 cgd Exp $ */
32 * @(#)random.c 8.1 (Berkeley) 6/10/93
40 * Pseudo-random number generator for randomizing the profiling clock.
45 random(void) function
/openbsd-current/gnu/llvm/llvm/utils/
H A Dshuffle_select_fuzz_tester.py6 instructions. It generates a function with a random sequnece of shufflevectors
18 import random namespace
216 # Returns a random vector type to be tested
244 num_elts = random.choice(range(2, 65))
248 if random.randint(0,1):
250 width = random.choice(int_elt_widths)
253 width = random.choice(float_elt_widths)
263 if SHUF_UNDEF_POS/ty.elt_num > random.random():
266 mask.append(random
[all...]
H A Dshuffle_fuzz.py6 generates a function with a random sequnece of shufflevectors, maintaining the
20 import random namespace
43 random.seed(args.seed)
51 (width, element_type) = random.choice(
55 (width, element_type) = random.choice(
60 width = random.choice([2, 4, 8, 16, 32, 64])
61 element_type = random.choice(element_types)
106 shuffle_tree = [[[-1 if random.random() <= undef_prob
107 else random
[all...]
/openbsd-current/gnu/llvm/clang/utils/VtableTest/
H A Dgen.cc73 int i_bases = random() % (N_BASES*2);
81 if (random() % 4 == 0)
91 int base = random() % (s-1) + 1;
101 if (random()%8 == 0) {
111 base_protection = random()%8;
138 int n_fields = N_FIELDS == 0 ? 0 : random() % (N_FIELDS*4);
143 int t = random() % (sizeof(simple_types) / sizeof(simple_types[0]));
150 int n_funcs = random() % (N_FUNCS*2);
155 int fn = old_func + random() % FUNCSPACING + 1;
159 ret_type = random()
[all...]
/openbsd-current/games/
H A DMakefile6 primes quiz rain random robots sail snake tetris trek wargames \
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DRandomNumberGenerator.h9 // This file defines an abstraction for deterministic random number
11 // cryptographically secure as it uses the C++11 <random> facilities.
20 #include <random>
26 /// A random number generator.
35 // http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine
43 /// Returns a random number in the range [0, Max).
65 // Get random vector of specified size
/openbsd-current/gnu/llvm/libcxx/src/
H A Drandom_shuffle.cpp10 #include <random>
/openbsd-current/usr.sbin/unbound/testcode/
H A Dunitneg.c94 /** get static pointer to random zone name */
98 int labels = random() % 3;
104 labnum = random()%10;
112 /** get static pointer to random data names from and to */
126 type = random()%10;
130 lab1 = random() %3 + 1;
131 lab2 = lab1 + random()%3 + 1;
133 labnum1[i] = random()%100;
137 labnum2[i] = random()%100;
142 lab1 = random()
[all...]
H A Dunitslabhash.c107 /** test adding a random element */
111 int numtoadd = random() % HASHTESTMAX;
119 /** test adding a random element */
123 int num = random() % HASHTESTMAX;
130 /** test adding a random element */
134 int num = random() % HASHTESTMAX;
194 /** test adding a random element (unlimited range) */
198 int numtoadd = random() % (HASHTESTMAX * 10);
207 /** test adding a random element (unlimited range) */
211 int num = random()
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/precompiled/
H A Dstdtr1c++.h54 #include <tr1/random>
/openbsd-current/games/adventure/
H A Dsetup.c95 printf("0x%02x,", (unsigned int)('\t' ^ random()) & 0xFF);
110 printf("0x%02x,", (unsigned int)(c ^ random()) & 0xFF);
/openbsd-current/regress/lib/libc/sys/
H A Dh_macros.h81 *sb++ = (uint16_t)random();
84 randval = (uint16_t)random();
/openbsd-current/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dgenk-timing.py6 import random namespace
35 """Used to generate random Kaleidoscope code"""
117 shouldCallFunc = (self.lastFuncNum > 2 and random.random() < self.callWeighting)
119 funcToCall = random.randrange(1, self.lastFuncNum - 1)
124 operation = random.choice(possibleOperations)
133 self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
154 # Write some random operations
167 arg1 = random.uniform(1, 100)
168 arg2 = random
[all...]
/openbsd-current/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dgenk-timing.py6 import random namespace
40 """Used to generate random Kaleidoscope code"""
122 shouldCallFunc = (self.lastFuncNum > 2 and random.random() < self.callWeighting)
124 funcToCall = random.randrange(1, self.lastFuncNum - 1)
129 operation = random.choice(possibleOperations)
138 self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
159 # Write some random operations
172 arg1 = random.uniform(1, 100)
173 arg2 = random
[all...]
/openbsd-current/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dgenk-timing.py6 import random namespace
35 """Used to generate random Kaleidoscope code"""
117 shouldCallFunc = (self.lastFuncNum > 2 and random.random() < self.callWeighting)
119 funcToCall = random.randrange(1, self.lastFuncNum - 1)
124 operation = random.choice(possibleOperations)
133 self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
154 # Write some random operations
167 arg1 = random.uniform(1, 100)
168 arg2 = random
[all...]

Completed in 315 milliseconds

12345678