Symbol: arc4random
games/atc/update.c
62
return arc4random();
games/gomoku/pickmove.c
203
return (arc4random() & 1);
games/phantasia/misc.c
1540
return ((double) arc4random() / (UINT32_MAX + 1.0));
games/phantasia/setup.c
243
return((double) arc4random() / (UINT32_MAX + 1.0));
games/wump/wump.c
622
if (arc4random() % 2 == 1)
include/stdlib.h
315
uint32_t arc4random(void);
lib/libagentx/ax.c
1033
packetid = arc4random();
lib/libc/crypt/arc4random.c
195
DEF_WEAK(arc4random);
lib/libc/crypt/arc4random_uniform.c
50
r = arc4random();
lib/libc/hidden/stdlib.h
62
PROTO_NORMAL(arc4random);
lib/libc/net/res_random.c
183
tmp = arc4random();
lib/libc/net/res_random.c
188
tmp = arc4random();
lib/libc/rpc/clnt_tcp.c
177
call_msg.rm_xid = arc4random();
lib/libc/rpc/clnt_udp.c
98
args->call_msg.rm_xid = arc4random();
lib/libc/rpc/pmap_rmt.c
268
msg.rm_xid = xid = arc4random();
lib/libc/stdlib/lrand48.c
21
return arc4random() & 0x7fffffff;
lib/libc/stdlib/malloc.c
565
while ((mopts.malloc_canary = arc4random()) == 0)
lib/libc/stdlib/malloc.c
567
mopts.junk_loc = arc4random();
lib/libc/stdlib/malloc.c
570
mopts.chunk_canaries = arc4random();
lib/libc/stdlib/mrand48.c
21
return (int)arc4random();
lib/libc/stdlib/rand.c
54
return (arc4random() & RAND_MAX);
lib/libc/stdlib/random.c
390
return arc4random() & 0x7fffffff;
lib/libexpat/lib/xmlparse.c
1118
const uint32_t random32 = arc4random();
lib/libradius/radius_mppe.c
60
salt = arc4random();
lib/librthread/rthread_stack.c
54
rnd = arc4random() & (_thread_pagesize - 1);
lib/librthread/rthread_stack.c
56
rnd = arc4random() & (_thread_pagesize / 16 - 1);
lib/libtls/tls_config.c
134
config->ticket_keyrev = arc4random();
libexec/login_radius/raddauth.c
251
req_id = (u_char) arc4random();
libexec/login_radius/raddauth.c
263
r = arc4random();
libexec/login_token/token.c
144
arc4random());
libexec/login_token/token.c
95
cb->ul[0] = arc4random();
libexec/login_token/token.c
96
cb->ul[1] = arc4random();
regress/lib/libc/arc4random-fork/arc4random-fork.c
114
(void)arc4random();
regress/lib/libc/arc4random-fork/arc4random-fork.c
66
buf->x[i] = arc4random();
regress/lib/libc/popen/popen.c
58
buffer[index]=arc4random();
regress/lib/libssl/interop/server.c
214
context = arc4random();
regress/sys/crypto/enc/des3.c
125
rand = arc4random();
regress/sys/crypto/enc/des3.c
131
rand = arc4random();
regress/sys/kern/poll/pollretval.c
17
pfd[i].events = arc4random() % 0x177;
regress/sys/kern/sysvsem/semtest.c
124
semkey = ftok(keyname, arc4random() & INT_MAX);
regress/sys/net/rtable/util.c
529
rt_hashjitter = arc4random();
regress/sys/netinet/bindconnect/bindconnect.c
139
~mask.au_inaddr.s_addr & arc4random();
regress/sys/netinet/bindconnect/bindconnect.c
154
~mask.au_in6addr.s6_addr32[3] & arc4random();
regress/sys/netinet/bindconnect/bindconnect.c
226
su.su_sin.sin_port = arc4random();
regress/sys/netinet/bindconnect/bindconnect.c
228
su.su_sin6.sin6_port = arc4random();
regress/sys/netinet/tcpthread/tcpthread.c
100
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
154
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
293
type = arc4random() % 2;
regress/sys/netinet/tcpthread/tcpthread.c
294
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
372
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
390
percent = arc4random() % 100;
regress/sys/netinet/tcpthread/tcpthread.c
395
percent = arc4random() % 100;
regress/sys/netinet/tcpthread/tcpthread.c
450
type = arc4random() % 2;
regress/sys/netinet/tcpthread/tcpthread.c
451
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
482
type = splice_num > 0 ? (arc4random() % 2) : 0;
regress/sys/netinet/tcpthread/tcpthread.c
490
num = arc4random() % sock_num;
regress/sys/netinet/tcpthread/tcpthread.c
648
family = arc4random() % 2;
regress/sys/netinet/tcpthread/tcpthread.c
668
family = arc4random() % 2;
regress/sys/netinet/tcpthread/tcpthread.c
99
type = arc4random() % (splice_num > 0 ? 4 : 2);
regress/sys/netinet/udpthread/udpthread.c
171
num = arc4random() % sock_num;
regress/sys/netinet/udpthread/udpthread.c
344
type = arc4random() % 2;
regress/sys/netinet/udpthread/udpthread.c
345
num = arc4random() % sock_num;
regress/sys/netinet/udpthread/udpthread.c
422
num = arc4random() % sock_num;
regress/sys/netinet/udpthread/udpthread.c
440
percent = arc4random() % 100;
regress/sys/netinet/udpthread/udpthread.c
445
percent = arc4random() % 100;
regress/sys/netinet/udpthread/udpthread.c
500
type = arc4random() % 2;
regress/sys/netinet/udpthread/udpthread.c
501
num = arc4random() % sock_num;
regress/sys/netinet/udpthread/udpthread.c
650
family = arc4random() % 2;
regress/sys/netinet/udpthread/udpthread.c
677
family = arc4random() % 2;
regress/sys/netinet/udpthread/udpthread.c
94
type = arc4random() % (splice_num > 0 ? 4 : 2);
regress/sys/netinet/udpthread/udpthread.c
95
num = arc4random() % sock_num;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
115
r |= arc4random() & 1;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
76
ret = ((arc4random() & 1) ?
regress/usr.sbin/snmpd/agentx.c
1011
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1018
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1036
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1059
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1066
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1085
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1113
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1143
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1170
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1199
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1228
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1257
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1286
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
130
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1314
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1346
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1378
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1411
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1442
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1474
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1506
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1538
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1557
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
157
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1581
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1605
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1630
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1649
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1674
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1705
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1736
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1767
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1786
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1812
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1832
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1857
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1877
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
190
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1903
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1922
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1946
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1965
packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
1989
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2019
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2047
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2079
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2111
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
214
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2145
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2183
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2219
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2253
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2289
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2326
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2363
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
264
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2819
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2847
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
2871
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
291
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
320
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
348
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
377
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
405
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
433
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
460
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
482
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
508
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
534
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
561
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
586
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
612
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
638
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
664
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
690
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
755
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
780
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
810
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
840
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
870
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
900
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
930
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
960
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/agentx.c
989
uint32_t packetid = arc4random();
regress/usr.sbin/snmpd/snmp.c
262
requestid = arc4random();
regress/usr.sbin/snmpd/snmp.c
368
hd->msgid = arc4random();
regress/usr.sbin/snmpd/snmp.c
372
requestid = arc4random();
regress/usr.sbin/snmpd/snmp.c
414
hdd.msgid = arc4random();
sbin/clri/clri.c
142
dp2->di_gen = arc4random();
sbin/clri/clri.c
150
dp1->di_gen = arc4random();
sbin/dhcpleased/engine.c
1445
iface->xid = arc4random();
sbin/dhcpleased/engine.c
1458
iface->xid = arc4random();
sbin/dhcpleased/engine.c
1480
iface->xid = arc4random();
sbin/dhcpleased/engine.c
654
iface->xid = arc4random();
sbin/fsirand/fsirand.c
245
sblock->fs_id[1] = arc4random();
sbin/fsirand/fsirand.c
301
dp1->di_gen = arc4random();
sbin/fsirand/fsirand.c
303
dp2->di_gen = arc4random();
sbin/growfs/growfs.c
492
dp1->di_gen = arc4random();
sbin/growfs/growfs.c
495
dp2->di_gen = arc4random();
sbin/growfs/growfs.c
508
dp1->di_gen = arc4random();
sbin/iked/crypto_api.h
23
#define small_random32() arc4random()
sbin/iked/ikev2.c
2413
rnd = arc4random();
sbin/isakmpd/util.c
231
rtm->rtm_seq = seq = arc4random();
sbin/mount_vnd/mount_vnd.c
161
*s = arc4random();
sbin/newfs/mkfs.c
464
sblock.fs_id[1] = (u_int32_t)arc4random();
sbin/newfs/mkfs.c
745
dp1->di_gen = arc4random();
sbin/newfs/mkfs.c
748
dp2->di_gen = arc4random();
sbin/newfs/mkfs.c
761
dp1->di_gen = arc4random();
sbin/newfs/mkfs.c
977
ip->dp1.di_gen = arc4random();
sbin/newfs/mkfs.c
979
ip->dp2.di_gen = arc4random();
sbin/newfs_ext2fs/mke2fs.c
1352
dp->e2di_gen = htole32(arc4random());
sbin/newfs_ext2fs/mke2fs.c
746
dp->e2di_gen = htole32(arc4random());
sbin/pfctl/parse.y
4093
$$->key32[0] = arc4random();
sbin/pfctl/parse.y
4094
$$->key32[1] = arc4random();
sbin/pfctl/parse.y
4095
$$->key32[2] = arc4random();
sbin/pfctl/parse.y
4096
$$->key32[3] = arc4random();
sbin/pfctl/pfctl_optimize.c
1268
table_identifier = arc4random();
sbin/pfctl/pfctl_optimize.c
1284
table_identifier = arc4random();
sbin/ping/ping.c
597
ident = arc4random() & 0xFFFF;
sbin/resolvd/resolvd.c
569
rtm.rtm_seq = arc4random();
sbin/unwind/libunbound/config.h
1547
uint32_t arc4random(void);
sbin/unwind/libunbound/config.h
1555
uint32_t arc4random(void);
sbin/unwind/libunbound/util/random.c
128
return (long)arc4random() & MAX_VALUE;
sbin/unwind/resolver.c
1252
res->check_tv.tv_usec = arc4random() % 1000000; /* modulo bias is ok */
sbin/unwind/resolver.c
1704
tv.tv_usec = arc4random() % 1000000; /* modulo bias is ok */
sbin/unwind/unwind.c
863
rtm.rtm_seq = arc4random();
sbin/vnconfig/vnconfig.c
200
*s = arc4random();
sys/arch/alpha/alpha/cpu.c
604
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/amd64/amd64/cpu.c
945
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/amd64/amd64/vm_machdep.c
91
(arc4random() & PAGE_MASK & ~_STACKALIGNBYTES);
sys/arch/arm/arm/cpu.c
467
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/arm64/arm64/cpu.c
1802
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/arm64/arm64/pmap.c
244
asid = arc4random() & (pmap_nasid - 2);
sys/arch/hppa/dev/cpu.c
203
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/i386/i386/cpu.c
635
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/i386/i386/vm_machdep.c
82
(arc4random() & PAGE_MASK & ~_STACKALIGNBYTES);
sys/arch/luna88k/luna88k/machdep.c
767
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/macppc/macppc/cpu.c
676
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/mips64/mips64/cpu.c
402
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/powerpc64/powerpc64/cpu.c
394
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/powerpc64/powerpc64/pmap.c
392
vsid = arc4random() & (NUM_VSID - 1);
sys/arch/powerpc64/powerpc64/vm_machdep.c
96
(arc4random() & PAGE_MASK & ~_STACKALIGNBYTES);
sys/arch/riscv64/riscv64/cpu.c
533
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/arch/sparc64/sparc64/cpu.c
680
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/crypto/idgen.c
109
ctx->id32_offset = arc4random();
sys/crypto/idgen.c
118
ctx->id32_hibit = arc4random() & 0x80000000;
sys/dev/bio.c
133
bm->bm_cookie = arc4random();
sys/dev/ic/if_wi.c
2214
sc->wi_icv = arc4random();
sys/dev/ic/if_wi_hostap.c
642
arc4random();
sys/dev/ic/rt2860.c
3036
uint32_t val = arc4random();
sys/dev/ic/rtwn.c
2062
rtwn_write_4(sc, R92C_EDCA_RANDOM_GEN, arc4random());
sys/dev/pci/drm/include/linux/random.h
12
return arc4random();
sys/dev/pci/drm/include/linux/random.h
24
return arc4random();
sys/dev/rnd.c
611
r = arc4random();
sys/dev/usb/ehci.c
3102
islot = EHCI_IQHIDX(lev, arc4random());
sys/dev/usb/if_uath.c
1386
iv = (ic->ic_iv != 0) ? ic->ic_iv : arc4random();
sys/kern/exec_subr.c
392
dist = (vsize_t)arc4random() << PAGE_SHIFT;
sys/kern/exec_subr.c
397
dist = arc4random() & (stackgap_random - 1);
sys/kern/init_main.c
321
p->p_cpu->ci_randseed = (arc4random() & 0x7fffffff) + 1;
sys/kern/kern_event.c
1095
p->p_kq_serial = arc4random();
sys/kern/kern_exec.c
420
sgap = arc4random() & PAGE_MASK;
sys/kern/kern_fork.c
641
tid = 1 + (arc4random() & TID_MASK);
sys/kern/subr_pool.c
965
order = arc4random();
sys/kern/sys_futex.c
129
fsq->fsq_id = arc4random();
sys/net/bfd.c
203
bfd->bc_neighbor->bn_ldiscr = arc4random();
sys/net/bpf_filter.c
200
A = arc4random();
sys/net/if_aggr.c
558
sc->sc_mix = arc4random();
sys/net/if_ethersubr.c
686
int rng = arc4random();
sys/net/if_gre.c
2269
sc->sc_ka_bias = arc4random();
sys/net/if_gre.c
3093
htobem32(&gk->gk_random, arc4random());
sys/net/if_mpip.c
104
sc->sc_flow = arc4random() & 0xfffff;
sys/net/if_mpw.c
94
sc->sc_flow = arc4random();
sys/net/if_pppoe.c
274
unique = arc4random();
sys/net/if_sec.c
119
sec_mix = arc4random();
sys/net/if_spppsubr.c
2087
sp->lcp.magic = arc4random();
sys/net/if_spppsubr.c
2243
sp->lcp.magic = arc4random();
sys/net/if_spppsubr.c
4546
random = arc4random();
sys/net/if_wg.c
2030
key = index->i_key = arc4random();
sys/net/pf.c
5403
st->src.seqhi = arc4random();
sys/net/pf.c
5589
while ((src->seqdiff = arc4random() - seq) == 0)
sys/net/pf.c
6016
(*stp)->dst.seqhi = arc4random();
sys/net/pf.c
6079
s->src.seqhi = arc4random();
sys/net/pf.c
9127
pf_status.hostid = arc4random();
sys/net/pf_ioctl.c
3873
pf_trans_set.hostid = arc4random();
sys/net/pf_norm.c
1223
src->scrub->pfss_ts_mod = arc4random();
sys/net/route.c
194
rt_hashjitter = arc4random();
sys/net/toeplitz.c
91
seed = arc4random() & UINT16_MAX;
sys/net/wg_cookie.c
493
sin.sin_port = arc4random();
sys/net/wg_cookie.c
501
sin.sin_port = arc4random();
sys/net/wg_cookie.c
515
sin6.sin6_port = arc4random();
sys/net/wg_cookie.c
523
sin6.sin6_port = arc4random();
sys/net80211/ieee80211_crypto_wep.c
113
iv = (ctx->iv != 0) ? ctx->iv : arc4random();
sys/net80211/ieee80211_node.c
1525
fail = arc4random() & 3; /* random 0-3 */
sys/netinet/tcp_input.c
1250
((arc4random() & 0x7fffffff) | 0x8000);
sys/netinet/tcp_input.c
3903
sc->sc_iss = issp ? *issp : arc4random();
sys/netinet/tcp_input.c
3911
sc->sc_modulate = arc4random();
sys/netinet6/ip6_id.c
162
p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1));
sys/netinet6/ip6_id.c
163
p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1));
sys/netinet6/ip6_id.c
166
p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1;
sys/netinet6/ip6_id.c
168
(arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m);
sys/netinet6/ip6_id.c
206
n = arc4random() & 0x3;
sys/netinet6/nd6.h
112
(((MIN_RANDOM_FACTOR * (x >> 10)) + (arc4random() & \
sys/sys/systm.h
230
u_int32_t arc4random(void);
sys/tmpfs/tmpfs_subr.c
135
nnode->tn_gen = TMPFS_NODE_GEN_MASK & arc4random();
sys/ufs/ffs/ffs_alloc.c
1206
dp2->di_gen = arc4random();
sys/ufs/ffs/ffs_vfsops.c
1297
DIP_ASSIGN(ip, gen, arc4random());
sys/uvm/uvm_addr.c
1023
(arc4random() & ~(align - 1));
sys/uvm/uvm_addr.c
1043
pivot->dir = (arc4random() & 0x1 ? 1 : -1);
sys/uvm/uvm_addr.c
1365
before_gap = ((arc4random() & 0x3) + 1) << PAGE_SHIFT;
sys/uvm/uvm_addr.c
1366
after_gap = ((arc4random() & 0x3) + 1) << PAGE_SHIFT;
sys/uvm/uvm_addr.c
952
minaddr += (vsize_t)arc4random() << PAGE_SHIFT;
sys/uvm/uvm_addr.c
953
maxaddr -= (vsize_t)arc4random() << PAGE_SHIFT;
sys/uvm/uvm_addr.c
975
path = arc4random();
sys/uvm/uvm_map.c
3842
(arc4random() & (I386_MAX_EXE_ADDR / 2 - 1));
sys/uvm/uvm_map.c
3863
addr += arc4random() & spacing;
usr.bin/dig/dighost.c
2044
id = arc4random();
usr.bin/dig/lib/dns/rdataset.c
277
val = arc4random();
usr.bin/dig/lib/isc/hash.c
108
fnv_offset_basis = arc4random();
usr.bin/jot/jot.c
291
y = arc4random() / ((double)0xffffffff + 1);
usr.bin/rsync/server.c
76
sess.seed = arc4random();
usr.bin/rusers/rusers.c
466
msg->rm_xid = arc4random();
usr.bin/snmp/snmp.c
158
SNMP_C_GETREQ, arc4random() & 0x7fffffff, 0, 0)) == NULL)
usr.bin/snmp/snmp.c
181
SNMP_C_GETNEXTREQ, arc4random() & 0x7fffffff, 0, 0)) == NULL)
usr.bin/snmp/snmp.c
206
SNMP_C_TRAPV2, arc4random() & 0x7fffffff, 0, 0)) == NULL)
usr.bin/snmp/snmp.c
240
SNMP_C_GETBULKREQ, arc4random() & 0x7fffffff, non_repeaters,
usr.bin/snmp/snmp.c
263
SNMP_C_SETREQ, arc4random() & 0x7fffffff, 0, 0, vblist) == NULL) {
usr.bin/ssh/crypto_api.h
24
#define small_random32() arc4random()
usr.bin/ssh/packet.c
2873
rnd = arc4random();
usr.bin/ssh/sshkey.c
2843
check = arc4random();
usr.sbin/bgpd/rde.c
1972
path_id_tx = arc4random() | 1;
usr.sbin/bgpd/rde_peer.c
196
peer->path_id_tx = arc4random() << 1;
usr.sbin/hostapd/hostapd.c
527
data = arc4random();
usr.sbin/httpd/server.c
380
key->tt_keyrev = arc4random();
usr.sbin/iscsid/connection.c
66
c->cid = arc4random();
usr.sbin/iscsid/initiator.c
142
s->cmdseqnum = arc4random();
usr.sbin/iscsid/initiator.c
143
s->itt = arc4random();
usr.sbin/ldapd/uuid.c
154
seq_num = arc4random();
usr.sbin/ldomctl/config.c
1857
mac_addr = 0x00144ff80000 + (arc4random() & 0x3ffff);
usr.sbin/ldomctl/config.c
1961
mac_addr = 0x00144ff80000 + (arc4random() & 0x3ffff);
usr.sbin/ldomctl/config.c
2097
mac_address = 0x00144ff80000 + (arc4random() & 0x3ffff);
usr.sbin/lpd/frontend.c
229
conn->id = arc4random();
usr.sbin/lpd/resolver.c
117
req->id = arc4random();
usr.sbin/lpd/resolver.c
86
req->id = arc4random();
usr.sbin/mtrace/mtrace.c
425
query->tr_qid = arc4random();
usr.sbin/npppd/l2tp/l2tpd.c
116
off = arc4random() & L2TP_SESSION_ID_MASK;
usr.sbin/npppd/npppd/lcp.c
127
_this->magic_number = arc4random();
usr.sbin/npppd/npppd/npppd.c
277
_this->boot_id = arc4random();
usr.sbin/npppd/pppoe/pppoed.c
145
_this->acookie_next = arc4random();
usr.sbin/npppd/pppoe/pppoed.c
150
off = arc4random() & 0xffff;
usr.sbin/npppd/pptp/pptp_ctrl.c
135
_this->echo_seq = arc4random();
usr.sbin/nsd/rrl.c
483
if((rrl_slip_ratio > 0) && ((rrl_slip_ratio == 1) || ((arc4random() % rrl_slip_ratio) == 0))) {
usr.sbin/nsd/server.c
1524
hash_set_raninit(arc4random());
usr.sbin/nsd/util.c
852
return (uint16_t) arc4random();
usr.sbin/nsd/util.c
871
return (int) (arc4random() % max);
usr.sbin/ntpd/client.c
208
p->query.msg.xmttime.int_partl = arc4random();
usr.sbin/ntpd/client.c
209
p->query.msg.xmttime.fractionl = arc4random();
usr.sbin/ospf6d/neighbor.c
284
nbr->dd_seq_num = arc4random(); /* RFC: some unique value */
usr.sbin/ospf6d/neighbor.c
590
nbr->dd_seq_num += arc4random() & 0xffff;
usr.sbin/ospfd/interface.c
174
iface->crypt_seq_num = arc4random() & 0x0fffffff;
usr.sbin/ospfd/neighbor.c
282
nbr->dd_seq_num = arc4random(); /* RFC: some unique value */
usr.sbin/ospfd/neighbor.c
587
nbr->dd_seq_num += arc4random() & 0xffff;
usr.sbin/pppd/magic.c
72
return arc4random();
usr.sbin/radiusctl/radiusctl.c
258
id = arc4random();
usr.sbin/radiusctl/radiusctl.c
353
resp.ident = arc4random();
usr.sbin/relayd/parse.y
864
$$.key.data[0] = arc4random();
usr.sbin/relayd/parse.y
865
$$.key.data[1] = arc4random();
usr.sbin/relayd/parse.y
866
$$.key.data[2] = arc4random();
usr.sbin/relayd/parse.y
867
$$.key.data[3] = arc4random();
usr.sbin/relayd/relayd.c
1897
key.tt_keyrev = arc4random();
usr.sbin/relayd/shuffle.c
57
si = arc4random();
usr.sbin/route6d/route6d.c
3139
double r = arc4random();
usr.sbin/route6d/route6d.c
3152
double r = arc4random();
usr.sbin/sasyncd/net.c
366
v = arc4random();
usr.sbin/smtpd/mail.maildir.c
175
arc4random(),
usr.sbin/smtpd/queue_backend.c
680
while ((msgid = arc4random()) == 0)
usr.sbin/smtpd/queue_backend.c
692
while ((rnd = arc4random()) == 0)
usr.sbin/smtpd/resolver.c
109
req->id = arc4random();
usr.sbin/smtpd/resolver.c
136
req->id = arc4random();
usr.sbin/smtpd/resolver.c
78
req->id = arc4random();
usr.sbin/smtpd/table_proc.c
51
r = snprintf(priv->lastid, sizeof(priv->lastid), "%08x", arc4random());
usr.sbin/smtpd/util.c
297
(void)snprintf(buf, sizeof buf, "%s%s%u", to, sep, arc4random());
usr.sbin/smtpd/util.c
685
id = arc4random();
usr.sbin/smtpd/util.c
688
while ((uid = ((uint64_t)(id++) << 32 | arc4random())) == 0)
usr.sbin/snmpd/application.c
1121
dreq->ard_requestid = arc4random();
usr.sbin/snmpd/application_agentx.c
215
conn->conn_id = arc4random();
usr.sbin/snmpd/application_agentx.c
245
conn->conn_id = arc4random();
usr.sbin/snmpd/application_agentx.c
544
session->sess_id = arc4random();
usr.sbin/snmpd/ax.c
525
if (ax_pdu_header(ax, AX_PDU_TYPE_CLOSE, 0, sessionid, arc4random(), 0,
usr.sbin/snmpd/snmpe.c
253
msg->sm_transactionid = arc4random();
usr.sbin/snmpd/trap.c
95
msg->sm_request = arc4random();
usr.sbin/tftp-proxy/tftp-proxy.c
699
r->id = arc4random(); /* XXX unique? */
usr.sbin/traceroute/traceroute.c
602
tmprnd = arc4random();
usr.sbin/traceroute/traceroute.c
605
usec_perturb = arc4random();
usr.sbin/unbound/testcode/delayer.c
1006
bindport = 1024 + ((int)arc4random())%64000;
usr.sbin/unbound/testcode/delayer.c
1018
bindport = 1024 + ((int)arc4random())%64000;
usr.sbin/unbound/testcode/streamtcp.c
412
return (int)arc4random();
usr.sbin/unbound/util/random.c
128
return (long)arc4random() & MAX_VALUE;
usr.sbin/vmd/vmd.c
1237
rng = arc4random();
usr.sbin/ypbind/ypbind.c
1069
xid = arc4random();