games/adventure/io.c
164
ch=(*inptr ^ random()) & 0xFF; /* Deobfuscate input data */
games/adventure/save.c
143
*s = (*s ^ random()) & 0xFF; /* Slightly obfuscate */
games/adventure/save.c
171
*s = (*s ^ random()) & 0xFF; /* deobfuscate */
games/adventure/setup.c
110
printf("0x%02x,", (unsigned int)(c ^ random()) & 0xFF);
games/adventure/setup.c
95
printf("0x%02x,", (unsigned int)('\t' ^ random()) & 0xFF);
games/atc/update.c
60
return random();
games/atc/update.c
69
return random() % upper_bound;
games/hack/hack.mklev.c
69
#define somex() ((random()%(croom->hx-croom->lx+1))+croom->lx)
games/hack/hack.mklev.c
70
#define somey() ((random()%(croom->hy-croom->ly+1))+croom->ly)
games/hack/rnd.c
64
#define RND(x) ((random()>>3) % x)
games/trek/ranf.c
44
t = random();
games/trek/ranf.c
53
t = random() & 077777;
include/stdlib.h
185
long random(void);
lib/libc/hidden/stdlib.h
137
PROTO_DEPRECATED(random);
lib/libc/stdlib/random.c
417
__warn_references(random,
regress/lib/libc/arch/alpha/divremtest/mktestcases.c
47
(random() & ((random() & random()) | 0x80000000));
regress/lib/libc/arch/alpha/divremtest/mktestcases.c
49
n1 |= (unsigned)(random() & random() & random());
regress/lib/libc/arch/alpha/divremtest/mktestcases.c
52
(random() & ((random() & random()) | 0x80000000));
regress/lib/libc/arch/alpha/divremtest/mktestcases.c
54
n2 |= (unsigned)(random() & random() & random());
regress/lib/libc/sys/h_macros.h
81
*sb++ = (uint16_t)random();
regress/lib/libc/sys/h_macros.h
84
randval = (uint16_t)random();
regress/lib/libcrypto/ec/ec_point_conversion.c
117
BIGNUM *random;
regress/lib/libcrypto/ec/ec_point_conversion.c
128
if ((random = BN_new()) == NULL)
regress/lib/libcrypto/ec/ec_point_conversion.c
142
if (!BN_rand_range(random, order))
regress/lib/libcrypto/ec/ec_point_conversion.c
144
} while (BN_is_zero(random));
regress/lib/libcrypto/ec/ec_point_conversion.c
149
if (!EC_POINT_mul(group, random_point, random, NULL, NULL, NULL))
regress/lib/libcrypto/ec/ec_point_conversion.c
157
BN_print_fp(stderr, random);
regress/lib/libcrypto/ec/ec_point_conversion.c
174
BN_free(random);
regress/lib/libevent/test-time.c
41
return (int)(random() % n);
regress/lib/libm/msun/rem_test.c
147
q = random();
regress/lib/libm/msun/rem_test.c
169
q = random();
regress/lib/libm/msun/rem_test.c
191
q = random();
regress/lib/libradius/test00.c
15
code = random();
regress/lib/libradius/test00.c
16
id = random();
regress/lib/libradius/test04.c
24
data0[i] = random();
regress/lib/libradius/test04.c
26
data1[i] = random();
regress/sys/sys/tree/rb/rb-test.c
153
r = random() % i; // arc4random_uniform(i);
regress/sys/sys/tree/rb/rbt-test.c
152
r = random() % i; // arc4random_uniform(i);
regress/usr.sbin/vmd/diskfmt/vioscribble.c
101
off = (random() % DISKSZ);
regress/usr.sbin/vmd/diskfmt/vioscribble.c
102
len = random() % sizeof buf + 1;
sbin/unwind/libunbound/services/outside_network.c
2816
long int random = 0;
sbin/unwind/libunbound/services/outside_network.c
2827
random = ub_random(rnd);
sbin/unwind/libunbound/services/outside_network.c
2830
if((random & 0x1)) {
sbin/unwind/libunbound/services/outside_network.c
2835
random >>= 1;
sys/arch/alpha/alpha/conf.c
167
cdev_random_init(1,random), /* 34: random data source */
sys/arch/amd64/amd64/conf.c
223
cdev_random_init(1,random), /* 45: random data source */
sys/arch/amd64/amd64/kexec.c
105
int error, random, i;
sys/arch/amd64/amd64/kexec.c
204
random = 0;
sys/arch/amd64/amd64/kexec.c
211
random = 1;
sys/arch/amd64/amd64/kexec.c
214
if (random == 0)
sys/arch/amd64/stand/efiboot/efirng.c
66
UINT8 *random;
sys/arch/amd64/stand/efiboot/efirng.c
74
random = alloc(buflen);
sys/arch/amd64/stand/efiboot/efirng.c
76
status = rng->GetRNG(rng, NULL, buflen, random);
sys/arch/amd64/stand/efiboot/efirng.c
84
buf[i] ^= random[i];
sys/arch/amd64/stand/efiboot/efirng.c
87
free(random, buflen);
sys/arch/arm/arm/conf.c
308
cdev_random_init(1,random), /* 40: random generator */
sys/arch/arm64/arm64/conf.c
173
cdev_random_init(1,random), /* 45: random data source */
sys/arch/arm64/stand/efiboot/efiboot.c
1106
char *random;
sys/arch/arm64/stand/efiboot/efiboot.c
1114
len = fdt_node_property(node, "rng-seed", &random);
sys/arch/arm64/stand/efiboot/efiboot.c
1117
buf[i] ^= random[i % len];
sys/arch/arm64/stand/efiboot/efiboot.c
1121
len = fdt_node_property(node, "kaslr-seed", &random);
sys/arch/arm64/stand/efiboot/efiboot.c
1124
buf[i] ^= random[i % len];
sys/arch/arm64/stand/efiboot/efirng.c
66
UINT8 *random;
sys/arch/arm64/stand/efiboot/efirng.c
74
random = alloc(buflen);
sys/arch/arm64/stand/efiboot/efirng.c
76
status = rng->GetRNG(rng, NULL, buflen, random);
sys/arch/arm64/stand/efiboot/efirng.c
84
buf[i] ^= random[i];
sys/arch/arm64/stand/efiboot/efirng.c
87
free(random, buflen);
sys/arch/armv7/stand/efiboot/efiboot.c
974
char *random;
sys/arch/armv7/stand/efiboot/efiboot.c
982
len = fdt_node_property(node, "rng-seed", &random);
sys/arch/armv7/stand/efiboot/efiboot.c
985
buf[i] ^= random[i % len];
sys/arch/armv7/stand/efiboot/efiboot.c
989
len = fdt_node_property(node, "kaslr-seed", &random);
sys/arch/armv7/stand/efiboot/efiboot.c
992
buf[i] ^= random[i % len];
sys/arch/hppa/hppa/conf.c
146
cdev_random_init(1,random), /* 20: random generator */
sys/arch/i386/i386/conf.c
210
cdev_random_init(1,random), /* 45: random data source */
sys/arch/landisk/landisk/conf.c
288
cdev_random_init(1,random), /* 40: random generator */
sys/arch/loongson/loongson/conf.c
172
cdev_random_init(1,random), /* 33: random data source */
sys/arch/luna88k/luna88k/conf.c
145
cdev_random_init(1,random), /* 40: random data source */
sys/arch/macppc/macppc/conf.c
170
cdev_random_init(1,random), /* 40: random data source */
sys/arch/octeon/octeon/conf.c
192
cdev_random_init(1,random), /* 33: random data source */
sys/arch/powerpc64/dev/kexec.c
103
int error, random, i;
sys/arch/powerpc64/dev/kexec.c
170
random = 0;
sys/arch/powerpc64/dev/kexec.c
177
random = 1;
sys/arch/powerpc64/dev/kexec.c
180
if (random == 0)
sys/arch/powerpc64/powerpc64/conf.c
122
cdev_random_init(1,random), /* 12: random data source */
sys/arch/riscv64/riscv64/conf.c
169
cdev_random_init(1,random), /* 45: random data source */
sys/arch/riscv64/stand/efiboot/efirng.c
66
UINT8 *random;
sys/arch/riscv64/stand/efiboot/efirng.c
74
random = alloc(buflen);
sys/arch/riscv64/stand/efiboot/efirng.c
76
status = rng->GetRNG(rng, NULL, buflen, random);
sys/arch/riscv64/stand/efiboot/efirng.c
84
buf[i] ^= random[i];
sys/arch/riscv64/stand/efiboot/efirng.c
87
free(random, buflen);
sys/arch/sparc64/sparc64/conf.c
276
cdev_random_init(1,random), /* 119: random data source */
sys/dev/pci/drm/i915/selftests/scatterlist.c
273
random,
sys/dev/pci/if_bnxreg.h
172
#define DB_RANDOMFALSE(defects) (random() > defects)
sys/dev/pci/if_bnxreg.h
173
#define DB_OR_RANDOMFALSE(defects) || (random() > defects)
sys/dev/pci/if_bnxreg.h
174
#define DB_AND_RANDOMFALSE(defects) && (random() > defects)
sys/dev/pci/if_bnxreg.h
177
#define DB_RANDOMTRUE(defects) (random() < defects)
sys/dev/pci/if_bnxreg.h
178
#define DB_OR_RANDOMTRUE(defects) || (random() < defects)
sys/dev/pci/if_bnxreg.h
179
#define DB_AND_RANDOMTRUE(defects) && (random() < defects)
sys/kern/kern_clockintr.c
308
while ((off = (random() & mask)) == 0)
sys/lib/libkern/libkern.h
151
u_int32_t random(void);
sys/net/if_spppsubr.c
4540
u_int32_t random;
sys/net/if_spppsubr.c
4546
random = arc4random();
sys/net/if_spppsubr.c
4547
if ((random & 0xff) == 0 && (random & 0xff00) == 0) {
sys/net/if_spppsubr.c
4551
myaddr.s6_addr[14] ^= (random & 0xff);
sys/net/if_spppsubr.c
4552
myaddr.s6_addr[15] ^= ((random & 0xff00) >> 8);
sys/sys/conf.h
586
cdev_decl(random);
usr.bin/awk/run.c
2184
u = (Awkfloat) random() / (0x7fffffffL + 0x1UL);
usr.sbin/makefs/ffs.c
978
dip->di_gen = random() / 2 + 1;
usr.sbin/makefs/ffs/mkfs.c
426
sblock.fs_id[1] = random();
usr.sbin/makefs/ffs/mkfs.c
718
dp1->di_gen = random();
usr.sbin/makefs/ffs/mkfs.c
721
dp2->di_gen = random();
usr.sbin/makefs/ffs/mkfs.c
736
dp1->di_gen = random();
usr.sbin/nsd/rrl.c
485
if((rrl_slip_ratio > 0) && ((rrl_slip_ratio == 1) || ((random() % rrl_slip_ratio) == 0))) {
usr.sbin/nsd/server.c
1533
hash_set_raninit(random());
usr.sbin/nsd/util.c
854
return (uint16_t) random();
usr.sbin/nsd/util.c
873
return (int) ((unsigned)random() % max);
usr.sbin/unbound/services/outside_network.c
2816
long int random = 0;
usr.sbin/unbound/services/outside_network.c
2827
random = ub_random(rnd);
usr.sbin/unbound/services/outside_network.c
2830
if((random & 0x1)) {
usr.sbin/unbound/services/outside_network.c
2835
random >>= 1;
usr.sbin/unbound/testcode/unitlruhash.c
237
int numtoadd = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitlruhash.c
249
int num = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitlruhash.c
260
int num = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitlruhash.c
315
int numtoadd = random() % (HASHTESTMAX * 10);
usr.sbin/unbound/testcode/unitlruhash.c
328
int num = random() % (HASHTESTMAX*10);
usr.sbin/unbound/testcode/unitlruhash.c
340
int num = random() % (HASHTESTMAX*10);
usr.sbin/unbound/testcode/unitlruhash.c
379
switch(random() % 4) {
usr.sbin/unbound/testcode/unitlruhash.c
401
switch(random() % 4) {
usr.sbin/unbound/testcode/unitlruhash.c
438
switch(random() % 4) {
usr.sbin/unbound/testcode/unitneg.c
104
labnum = random()%10;
usr.sbin/unbound/testcode/unitneg.c
126
type = random()%10;
usr.sbin/unbound/testcode/unitneg.c
130
lab1 = random() %3 + 1;
usr.sbin/unbound/testcode/unitneg.c
131
lab2 = lab1 + random()%3 + 1;
usr.sbin/unbound/testcode/unitneg.c
133
labnum1[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
137
labnum2[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
142
lab1 = random()%3 + 1;
usr.sbin/unbound/testcode/unitneg.c
144
labnum1[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
149
lab2 = random()%3 + 1;
usr.sbin/unbound/testcode/unitneg.c
151
labnum2[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
155
int common = random()%3;
usr.sbin/unbound/testcode/unitneg.c
156
lab1 = random() %3 + 1;
usr.sbin/unbound/testcode/unitneg.c
157
lab2 = random() %3 + 1;
usr.sbin/unbound/testcode/unitneg.c
159
labnum1[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
162
labnum1[common] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
163
labnum2[common] = labnum1[common] + random()%20;
usr.sbin/unbound/testcode/unitneg.c
165
labnum1[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
167
labnum2[i] = random()%100;
usr.sbin/unbound/testcode/unitneg.c
259
n = random() % (int)(z->count);
usr.sbin/unbound/testcode/unitneg.c
285
n = random() % (int)(d->count);
usr.sbin/unbound/testcode/unitneg.c
508
if(random() % 10 < 8)
usr.sbin/unbound/testcode/unitneg.c
525
if(random() % 10 < 8)
usr.sbin/unbound/testcode/unitneg.c
98
int labels = random() % 3;
usr.sbin/unbound/testcode/unitregional.c
224
get = random() % max;
usr.sbin/unbound/testcode/unitslabhash.c
111
int numtoadd = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitslabhash.c
123
int num = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitslabhash.c
134
int num = random() % HASHTESTMAX;
usr.sbin/unbound/testcode/unitslabhash.c
198
int numtoadd = random() % (HASHTESTMAX * 10);
usr.sbin/unbound/testcode/unitslabhash.c
211
int num = random() % (HASHTESTMAX*10);
usr.sbin/unbound/testcode/unitslabhash.c
223
int num = random() % (HASHTESTMAX*10);
usr.sbin/unbound/testcode/unitslabhash.c
259
switch(random() % 4) {
usr.sbin/unbound/testcode/unitslabhash.c
280
switch(random() % 4) {
usr.sbin/unbound/testcode/unitslabhash.c
317
switch(random() % 4) {