Symbol: arc4random
crypto/openssh/crypto_api.h
28
#define small_random32() arc4random()
crypto/openssh/openbsd-compat/arc4random.c
218
DEF_WEAK(arc4random);
crypto/openssh/openbsd-compat/arc4random.c
247
r = arc4random();
crypto/openssh/openbsd-compat/arc4random_uniform.c
57
r = arc4random();
crypto/openssh/openbsd-compat/openbsd-compat.h
229
uint32_t arc4random(void);
crypto/openssh/packet.c
2824
rnd = arc4random();
crypto/openssh/regress/netcat.c
1141
y = (arc4random() & 0xFFFF) % (hi - lo);
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fuzz.c
119
r |= arc4random() & 1;
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fuzz.c
80
ret = ((arc4random() & 1) ?
crypto/openssh/sshkey.c
2911
check = arc4random();
include/stdlib.h
268
arc4random(void);
lib/geom/concat/geom_concat.c
151
md.md_id = arc4random();
lib/geom/journal/geom_journal.c
150
md.md_id = arc4random();
lib/geom/mirror/geom_mirror.c
199
md.md_mid = arc4random();
lib/geom/mirror/geom_mirror.c
269
md.md_did = arc4random();
lib/geom/raid3/geom_raid3.c
166
md.md_id = arc4random();
lib/geom/shsec/geom_shsec.c
154
md.md_id = arc4random();
lib/geom/stripe/geom_stripe.c
172
md.md_id = arc4random();
lib/geom/virstor/geom_virstor.c
374
md.md_id = arc4random();
lib/libc/gen/arc4random_uniform.c
35
product = upper_bound * (uint64_t)arc4random();
lib/libc/gen/arc4random_uniform.c
43
product = upper_bound * (uint64_t)arc4random();
lib/libc/resolv/res_init.c
717
return ((u_int)(arc4random() & 0xffff));
lib/libpam/modules/pam_unix/pam_unix.c
488
to64(&salt[i], arc4random(), 4);
lib/libradius/radlib.c
1087
h->ident = arc4random();
lib/libradius/radlib.c
881
r = arc4random();
lib/libtacplus/taclib.c
432
r = arc4random();
lib/libtacplus/taclib.c
435
r = arc4random();
lib/libufs/cgroup.c
161
dp2->di_gen = arc4random();
lib/libunbound/config.h
1543
uint32_t arc4random(void);
lib/libunbound/config.h
1551
uint32_t arc4random(void);
libexec/tftpd/tftp-io.c
74
arc4random()%100 < packetdroppercentage) { \
libexec/tftpd/tftp-io.c
80
arc4random()%100 < packetdroppercentage) { \
sbin/dhclient/dhclient.c
1341
ip->client->interval += (arc4random() >> 2) %
sbin/dhclient/dhclient.c
1350
+ ((arc4random() >> 2) %
sbin/dhclient/dhclient.c
1553
ip->client->interval += ((arc4random() >> 2) %
sbin/dhclient/dhclient.c
1561
((arc4random() >> 2) % ip->client->interval));
sbin/dhclient/dhclient.c
1717
ip->client->packet.xid = arc4random();
sbin/dhclient/dhclient.c
634
ip->client->xid = arc4random();
sbin/fsirand/fsirand.c
169
sblock->fs_id[1] = arc4random();
sbin/fsirand/fsirand.c
200
dp1->di_gen = arc4random();
sbin/fsirand/fsirand.c
203
dp2->di_gen = arc4random();
sbin/ggate/ggatec/ggatec.c
421
token = arc4random();
sbin/growfs/growfs.c
378
dp1->di_gen = arc4random();
sbin/growfs/growfs.c
381
dp2->di_gen = arc4random();
sbin/growfs/growfs.c
397
dp1->di_gen = arc4random();
sbin/newfs/mkfs.c
1225
return (arc4random());
sbin/pfctl/parse.y
5051
$$->key32[0] = arc4random();
sbin/pfctl/parse.y
5052
$$->key32[1] = arc4random();
sbin/pfctl/parse.y
5053
$$->key32[2] = arc4random();
sbin/pfctl/parse.y
5054
$$->key32[3] = arc4random();
sbin/pfctl/pfctl_optimize.c
1310
table_identifier = arc4random();
sbin/pfctl/pfctl_optimize.c
1326
table_identifier = arc4random();
sys/arm/allwinner/if_awg.c
520
rnd = arc4random();
sys/arm/allwinner/if_emac.c
203
rnd = arc4random() & 0x00ffffff;
sys/dev/ae/if_ae.c
1050
eaddr[0] = arc4random();
sys/dev/aq/aq_hw.c
162
rnd = arc4random();
sys/dev/aq/aq_hw.c
316
rnd = arc4random();
sys/dev/bxe/bxe.c
11514
params.rss_key[i] = arc4random();
sys/dev/cadence/if_cgem.c
266
rnd = arc4random();
sys/dev/cxgbe/crypto/t7_kern_tls.c
258
flowid = arc4random();
sys/dev/cxgbe/iw_cxgbe/id_table.c
62
alloc->last += arc4random() % RANDOM_SKIP;
sys/dev/cxgbe/iw_cxgbe/id_table.c
96
alloc->last = arc4random() % RANDOM_SKIP;
sys/dev/cxgbe/t4_sge.c
7058
rss_hash = arc4random();
sys/dev/cxgbe/tom/t4_tom.c
1338
q_idx = arc4random();
sys/dev/cxgbe/tom/t4_tom.c
1347
q_idx = arc4random();
sys/dev/cxgbe/tom/t4_tom.c
1466
cp->txq_idx = vi->first_ofld_txq + g * nqpg + arc4random() % nqpg;
sys/dev/dwc/dwc1000_core.c
378
rnd = arc4random() & 0x00ffffff;
sys/dev/eqos/if_eqos.c
959
maclo = 0xf2 | (arc4random() & 0xffff0000);
sys/dev/eqos/if_eqos.c
960
machi = arc4random() & 0x0000ffff;
sys/dev/ffec/if_ffec.c
960
rnd = arc4random() & 0x00ffffff;
sys/dev/iwi/if_iwi.c
2642
data = htole32(arc4random());
sys/dev/neta/if_mvneta.c
378
mac_l = arc4random() & ~0xff;
sys/dev/neta/if_mvneta.c
380
mac_h = arc4random();
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
2766
status32 = arc4random() % ATOM_LINK_RECOVERY_TIME;
sys/dev/qlnx/qlnxe/qlnx_os.c
2331
rnd = arc4random();
sys/dev/ral/rt2860.c
3213
uint32_t val = arc4random();
sys/dev/sk/if_sk.c
1332
r = arc4random();
sys/dev/vnic/nicvf_main.c
317
rnd = arc4random() & 0x00ffffff;
sys/dev/wg/wg_noise.c
391
r_i->i_local_index = arc4random();
sys/fs/ext2fs/ext2_alloc.c
473
ip->i_gen = arc4random();
sys/fs/ext2fs/ext2_alloc.c
618
prefcg = arc4random() % fs->e2fs_gcount;
sys/fs/nfsclient/nfs_clport.c
729
*cp++ = (u_int8_t)(arc4random() % 256);
sys/fs/nfsclient/nfs_clrpcops.c
4868
(arc4random() % nfstest_outofseq) == 0)
sys/fs/nfsclient/nfs_clrpcops.c
4958
(arc4random() % nfstest_outofseq) == 0)
sys/fs/nfsclient/nfs_clrpcops.c
6691
firstmirror = arc4random() % mirrorcnt;
sys/fs/nfsclient/nfs_clstate.c
1010
nfs_exchangeboot = arc4random();
sys/fs/nfsclient/nfs_clvnops.c
1805
cverf.lval[0] = arc4random();
sys/fs/nfsclient/nfs_clvnops.c
1806
cverf.lval[1] = arc4random();
sys/fs/nfsserver/nfs_nfsdstate.c
7243
lhyp = &nfslayouthash[arc4random() % nfsrv_layouthashsize];
sys/fs/tarfs/tarfs_subr.c
178
tnp->gen = arc4random();
sys/fs/tmpfs/tmpfs_subr.c
353
node->tn_gen = arc4random();
sys/geom/concat/g_concat.c
876
md.md_id = arc4random();
sys/geom/journal/g_journal.c
1677
sc->sc_journal_next_id = arc4random();
sys/geom/journal/g_journal.c
1705
sc->sc_journal_id = arc4random();
sys/geom/journal/g_journal.c
1706
sc->sc_journal_next_id = arc4random();
sys/geom/mirror/g_mirror.c
768
md->md_did = arc4random();
sys/geom/mirror/g_mirror_ctl.c
399
md.md_mid = arc4random();
sys/geom/mirror/g_mirror_ctl.c
502
md.md_did = arc4random();
sys/geom/nop/g_nop.c
272
rval = arc4random() % 100;
sys/geom/nop/g_nop.c
295
rval = arc4random() % 100;
sys/geom/raid/md_ddf.c
632
(u_int)(ts.tv_sec - DECADE), arc4random());
sys/geom/raid/md_ddf.c
714
arc4random(), arc4random() & 0xffff);
sys/geom/raid/md_ddf.c
715
SET32D(meta, pde->PD_Reference, arc4random());
sys/geom/raid/md_ddf.c
860
arc4random(), arc4random() & 0xf);
sys/geom/raid/md_intel.c
1430
mdi->mdio_config_id = mdi->mdio_orig_config_id = arc4random();
sys/geom/raid/md_intel.c
829
meta->config_id = meta->orig_config_id = arc4random();
sys/geom/raid/md_jmicron.c
1102
pd->pd_disk_id = arc4random() & JMICRON_DISK_MASK;
sys/geom/raid/md_jmicron.c
1352
pd->pd_disk_id = arc4random() & JMICRON_DISK_MASK;
sys/geom/raid/md_jmicron.c
807
mdi->mdio_config_id = arc4random();
sys/geom/raid/md_jmicron.c
938
pd->pd_disk_id = arc4random() & JMICRON_DISK_MASK;
sys/geom/raid/md_sii.c
396
meta->timestamp[0] = arc4random();
sys/geom/raid/md_sii.c
397
meta->timestamp[1] = arc4random();
sys/geom/raid/md_sii.c
398
meta->timestamp[2] = arc4random();
sys/geom/raid/md_sii.c
399
meta->timestamp[3] = arc4random();
sys/geom/raid/md_sii.c
400
meta->timestamp[4] = arc4random();
sys/geom/raid/md_sii.c
401
meta->timestamp[5] = arc4random();
sys/geom/raid/md_sii.c
405
meta->raid_location = arc4random();
sys/geom/raid/md_sii.c
884
mdi->mdio_timestamp[5] = arc4random();
sys/geom/raid/md_sii.c
885
mdi->mdio_timestamp[4] = arc4random();
sys/geom/raid/md_sii.c
886
mdi->mdio_timestamp[3] = arc4random();
sys/geom/raid/md_sii.c
887
mdi->mdio_timestamp[2] = arc4random();
sys/geom/raid/md_sii.c
888
mdi->mdio_timestamp[1] = arc4random();
sys/geom/raid/md_sii.c
889
mdi->mdio_timestamp[0] = arc4random();
sys/geom/raid/md_sii.c
890
mdi->mdio_location = arc4random();
sys/geom/shsec/g_shsec.c
287
*rand = arc4random();
sys/geom/stripe/g_stripe.c
1086
md.md_id = arc4random();
sys/kern/kern_fork.c
270
randompid = 100 + arc4random() % 1024;
sys/kern/kern_fork.c
311
random = arc4random() % randompid;
sys/kern/kern_uuid.c
103
uuid_ether[0].node[i] = (uint16_t)arc4random();
sys/kern/kern_uuid.c
144
uuid.seq = (uint16_t)arc4random() & 0x3fff;
sys/kern/subr_fattime.c
273
ts.tv_sec = ((time_t) arc4random() << 4) ^ arc4random();
sys/kern/subr_unit.c
1330
if ((arc4random() & 1) != 0)
sys/kern/uipc_mbuf.c
1579
int temp = arc4random() & 0xff;
sys/kern/uipc_mbuf.c
1795
length = 1 + (arc4random() % divisor);
sys/kern/uipc_mbuf.c
1812
fraglen = 1 + (arc4random() % divisor);
sys/kern/uipc_mbufhash.c
62
seed = arc4random();
sys/kern/uipc_mbufhash.c
71
seed = arc4random();
sys/kern/vfs_vnops.c
2990
len = (arc4random() % (sizeof(kif->kf_path) - 2)) + 1;
sys/libkern/arc4random_uniform.c
50
r = arc4random();
sys/net/altq/altq_red.c
426
if ((arc4random() % d) < fp_len) {
sys/net/altq/altq_rmclass.c
1783
n = arc4random() % qlen(q) + 1;
sys/net/if_bridge.c
3693
sc->sc_rthash_key = arc4random();
sys/net/if_vxlan.c
3237
sc->vxl_port_hash_key = arc4random();
sys/net/if_vxlan.c
587
sc->vxl_ftable_hash_key = arc4random();
sys/net80211/ieee80211.c
339
ic->ic_hash_key = arc4random();
sys/net80211/ieee80211_freebsd.c
807
uint32_t v = arc4random();
sys/net80211/ieee80211_mesh.c
3003
r = arc4random();
sys/netinet/in_pcb.c
230
V_in_pcbhashseed = arc4random();
sys/netinet/in_pcb.c
830
*lastport = first + (arc4random() % (last - first));
sys/netinet/ip_carp.c
1065
sc->sc_counter = arc4random();
sys/netinet/ip_carp.c
1067
sc->sc_counter += arc4random();
sys/netinet/ip_reass.c
702
V_ipq_hashseed = arc4random();
sys/netinet/tcp_fastopen.c
410
V_tcp_fastopen_ccache.secret = arc4random();
sys/netinet/tcp_hostcache.c
236
V_tcp_hostcache.hashsalt = arc4random();
sys/netinet/tcp_hostcache.c
811
V_tcp_hostcache.hashsalt = arc4random();
sys/netinet/tcp_hostcache.c
837
V_tcp_hostcache.hashsalt = arc4random();
sys/netinet/tcp_hpts.c
390
ran = arc4random();
sys/netinet/tcp_subr.c
3538
(arc4random() & ISN_RANDOM_INCREMENT);
sys/netinet/tcp_syncache.c
1764
sc->sc_iss = arc4random();
sys/netinet/tcp_syncache.c
253
V_tcp_syncache.hash_secret = arc4random();
sys/netinet6/frag6.c
1046
V_ip6qb_hashseed = arc4random();
sys/netinet6/in6.c
1155
(arc4random() % (maxdelay - mindelay)) +
sys/netinet6/in6.c
2104
arc4random() % (MAX_RTR_SOLICITATION_DELAY * hz));
sys/netinet6/in6.c
687
delay = arc4random() % (MAX_RTR_SOLICITATION_DELAY * hz);
sys/netinet6/in6.c
724
delay = arc4random() % (MAX_RTR_SOLICITATION_DELAY * hz);
sys/netinet6/in6_proto.c
229
V_ip6_desync_factor = arc4random() % ndf;
sys/netinet6/ip6_id.c
186
p->ru_x = arc4random() % p->ru_m;
sys/netinet6/ip6_id.c
189
p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1));
sys/netinet6/ip6_id.c
190
p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1));
sys/netinet6/ip6_id.c
193
p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1;
sys/netinet6/ip6_id.c
195
(arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m);
sys/netinet6/ip6_id.c
199
j = arc4random() % p->ru_n;
sys/netinet6/ip6_id.c
233
n = arc4random() & 0x3;
sys/netinet6/ip6_input.c
273
V_ip6_desync_factor = arc4random() % V_ip6_temp_max_desync_factor;
sys/netinet6/mld6_var.h
123
#define MLD_RANDOM_DELAY(X) (arc4random() % (X) + 1)
sys/netinet6/nd6.c
1029
delay = arc4random() %
sys/netinet6/nd6.h
184
(((MIN_RANDOM_FACTOR * (x >> 10)) + (arc4random() & \
sys/netinet6/nd6_nbr.c
1608
dp->dad_nonce[i] = arc4random();
sys/netinet6/nd6_nbr.c
373
nd6_queue_add(ifa, &saddr6, &taddr6, &proxydl, arc4random() %
sys/netinet6/nd6_rtr.c
2298
(arc4random() & ~(ifra->ifra_prefixmask.sin6_addr.s6_addr32[2]));
sys/netinet6/nd6_rtr.c
2300
(arc4random() & ~(ifra->ifra_prefixmask.sin6_addr.s6_addr32[3]));
sys/netlink/netlink_domain.c
277
uint32_t nl_port = (arc4random() % 65536) + 65536 * 4;
sys/netlink/route/nexthop.c
361
key.un_idx = (arc4random() % 65536) + 65536 * 4;
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
1004
newiss = arc4random();
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
1377
return (arc4random());
sys/netpfil/ipfilter/netinet/ip_state.c
303
state_seed[i] = arc4random();
sys/netpfil/ipfw/ip_fw_dynamic.c
3183
V_dyn_hashseed = arc4random();
sys/netpfil/ipfw/nat64/nat64lsn.c
1843
cfg->hash_seed = arc4random();
sys/netpfil/pf/pf.c
1445
V_pf_hashseed = arc4random();
sys/netpfil/pf/pf.c
5599
return (digest.words[0] + (arc4random() & ISN_RANDOM_INCREMENT) +
sys/netpfil/pf/pf.c
6092
r->prob <= arc4random(),
sys/netpfil/pf/pf.c
6968
s->src.seqhi = arc4random();
sys/netpfil/pf/pf.c
7341
while ((src->seqdiff = arc4random() - seq) == 0)
sys/netpfil/pf/pf.c
7757
state->dst.seqhi = arc4random();
sys/netpfil/pf/pf.c
7825
s->src.seqhi = arc4random();
sys/netpfil/pf/pf_ioctl.c
420
V_pf_status.hostid = arc4random();
sys/netpfil/pf/pf_ioctl.c
651
ts->seed = arc4random();
sys/netpfil/pf/pf_ioctl.c
6571
V_pf_status.hostid = arc4random();
sys/netpfil/pf/pf_lb.c
1291
cut = arc4random() % (1 + high - low) + low;
sys/netpfil/pf/pf_lb.c
449
cut = arc4random() % (1 + high - low) + low;
sys/netpfil/pf/pf_lb.c
542
cut = arc4random() & ahigh;
sys/netpfil/pf/pf_lb.c
764
rpool->counter.addr32[0] = arc4random();
sys/netpfil/pf/pf_lb.c
771
arc4random();
sys/netpfil/pf/pf_lb.c
776
arc4random();
sys/netpfil/pf/pf_lb.c
781
arc4random();
sys/netpfil/pf/pf_lb.c
786
arc4random();
sys/netpfil/pf/pf_norm.c
1564
src->scrub->pfss_ts_mod = arc4random();
sys/sys/libkern.h
126
uint32_t arc4random(void);
sys/ufs/ffs/ffs_alloc.c
1190
ip->i_gen = arc4random();
sys/ufs/ffs/ffs_alloc.c
2211
dp2->di_gen = arc4random();
sys/ufs/ffs/ffs_vfsops.c
1867
ip->i_gen = arc4random();
sys/vm/vm_map.c
2253
*addr += (arc4random() % gap) * pagesizes[pidx];
tests/sys/kern/socket_accf.c
197
.length = htons((uint16_t)(arc4random() % 16384)),
tests/sys/kern/socket_accf.c
209
len = arc4random() % 1024;
tests/sys/kern/ssl_sendfile.c
331
offset = arc4random() % FSIZE;
tests/sys/kern/ssl_sendfile.c
332
size = arc4random() % RSIZE;
tests/sys/netinet/udp_io.c
120
n = (arc4random() % sizeof(sbuf)) + 1;
tests/sys/netinet/udp_io.c
83
n = (arc4random() % (sizeof(sbuf) - 1)) + 1;
tools/build/cross-build/include/linux/stdlib.h
63
unsigned arc4random(void);
tools/regression/gaithrstress/gaithrstress.c
67
ret = arc4random();
tools/test/stress2/lib/random_int.c
35
return (arc4random() % (ma - mi + 1) + mi);
tools/test/stress2/testcases/badcode/badcode.c
60
i = arc4random() % 50;
tools/test/stress2/testcases/badcode/badcode.c
61
p[i] = arc4random() & 0xff;
tools/test/stress2/testcases/swap/swap.c
158
if (arc4random() % 100 < 10)
tools/test/stress2/tools/flip.c
130
pos = arc4random() % size;
tools/test/stress2/tools/flip.c
135
if (arc4random() % 100 < 98)
tools/test/stress2/tools/flip.c
49
return (arc4random() % (ma - mi + 1) + mi);
tools/test/stress2/tools/flip.c
76
if (arc4random() % 2 == 1)
tools/test/stress2/tools/fstool.c
69
len = arc4random() % fs + 1;
tools/tools/qrndtest/r.c
46
{ "arc4random", arc4random },
tools/tools/sortbench/sort_bench.c
134
array[i] = arc4random();
tools/tools/vhba/faulty/vhba_faulty.c
61
vhbastatic.ctr = (arc4random() & 0xffff) + 1;
tools/tools/vhba/faulty/vhba_faulty.c
93
vhbas->ctr = (arc4random() & 0xff) + 1;
tools/tools/vhba/mptest/vhba_mptest.c
383
t.tv_usec = (500 + arc4random());
tools/tools/vhba/rptluns/vhba_rptluns.c
69
if (arc4random() & 1) {
tools/tools/vhba/rptluns/vhba_rptluns.c
75
if ((arc4random() % i) == 0) {
usr.bin/jot/jot.c
311
y = arc4random() / divisor;
usr.sbin/inetd/builtins.c
415
rnd32 = arc4random();
usr.sbin/ppp/defs.h
125
#define random arc4random
usr.sbin/pw/pw_user.c
519
l = (arc4random() % 8 + 8); /* 8 - 16 chars */