arc4random_uniform
return (arc4random_uniform(range));
op = keys[arc4random_uniform(nkeys)];
left = right * result + arc4random_uniform(right);
value = arc4random_uniform(maxval + penalty[op][operand]);
return arc4random_uniform(upper_bound);
#define rnum(r) arc4random_uniform(r)
#define rnd(x) arc4random_uniform(x)
q = (int)arc4random_uniform(p + 1);
board[i] = cubes[i][arc4random_uniform(6)];
i = arc4random_uniform(ncubes);
board[i] = SETHI(chal_cube[arc4random_uniform(6)]);
return(arc4random_uniform(n));
j = arc4random_uniform(i + 1);
k = arc4random_uniform(j); /* random 0 <= k < j */
i = arc4random_uniform(CARDS); /* random cut */
j = arc4random_uniform(CARDS);
i = arc4random_uniform(CARDS - pos);
i = arc4random_uniform(CARDS - pos) + pos;
return(arc4random_uniform(n));
choice = arc4random_uniform(100);
choice = arc4random_uniform(Noprob_tbl.str_numstr);
choice = arc4random_uniform(parent->num_children);
choice = arc4random_uniform(parent->tbl.str_numstr);
fp->pos = arc4random_uniform(fp->tbl.str_numstr);
i = arc4random_uniform(cnt);
pos = arc4random_uniform(Dict_size);
pos = arc4random_uniform(symsize);
&& num_turns > 4 + (arc4random_uniform(
duck(arc4random_uniform(NUMDIRECTIONS));
return (arc4random_uniform(range));
r = arc4random_uniform(i + 1);
tot += arc4random_uniform(nsides) + 1;
tot += arc4random_uniform(nsides) + 1;
next = arc4random_uniform(qsize);
if (tflag && arc4random_uniform(100) > 20) {
xpos[j] = arc4random_uniform(tcols) + 2;
ypos[j] = arc4random_uniform(tlines) + 2;
x = arc4random_uniform(tcols) + 2;
y = arc4random_uniform(tlines) + 2;
return arc4random_uniform(denom);
return arc4random_uniform(range);
#define die() (arc4random_uniform(6) + 1)
p.col = arc4random_uniform(ccnt);
p.line = arc4random_uniform(lcnt);
vp = arc4random_uniform(w);
bonus = arc4random_uniform(10);
tmp = &shapes[arc4random_uniform(7)];
j = arc4random_uniform(4);
return arc4random_uniform(range);
op->opts[arc4random_uniform(op->nopts)];
bat_num += arc4random_uniform(room_num / 2 - bat_num);
pit_num += arc4random_uniform(room_num / 2 - pit_num);
if (arc4random_uniform(15) == 1)
if (arc4random_uniform(6) == 1) {
if (arc4random_uniform(12) < 2) {
arc4random_uniform(room_num) + 1;
chance = arc4random_uniform(10);
link = (arc4random_uniform(link_num));
if (arc4random_uniform(level == EASY ? 12 : 9) < lastchance) {
lastchance = arc4random_uniform(3);
delta = arc4random_uniform(room_num - 1) + 1;
try_again: link = arc4random_uniform(room_num) + 1;
j = arc4random_uniform(20 - i);
loc = arc4random_uniform(room_num) + 1;
loc = arc4random_uniform(room_num) + 1;
wumpus_loc = arc4random_uniform(room_num) + 1;
player_loc = arc4random_uniform(room_num) + 1;
wumpus_loc = cave[wumpus_loc].tunnel[arc4random_uniform(link_num)];
uint32_t arc4random_uniform(uint32_t);
DEF_WEAK(arc4random_uniform);
PROTO_NORMAL(arc4random_uniform);
ru_x = arc4random_uniform(RU_M);
j = arc4random_uniform(RU_N);
(arc4random_uniform(d_avail) << MALLOC_MINSHIFT));
i = arc4random_uniform(nfds);
i = arc4random_uniform(sop->event_fds + 1);
name[i] = arc4random_uniform(255) + 1;
name[i] = arc4random_uniform(255) + 1;
new_idx = arc4random_uniform(idx + 1);
us = arc4random_uniform(3000000);
size = arc4random_uniform(SIZE);
r = arc4random_uniform(2);
int p = arc4random_uniform(17) + 3;
return arc4random_uniform(1 << p);
p = arc4random_uniform(2);
i = arc4random_uniform(N);
r = arc4random_uniform(2);
x[i] = arc4random_uniform(m); \
x[i] = arc4random_uniform(m) ? (j += 2) : (k += 2); \
in_len = arc4random_uniform(at->in_len / 2);
in_len = arc4random_uniform(at->out_len / 2);
in_len = arc4random_uniform(bt->in_len / 2);
in_len = arc4random_uniform(bt->out_len / 2);
bits = avg_bits + arc4random_uniform(deviate) - deviate;
multiple = arc4random_uniform(16) + 2;
digit = '0' + arc4random_uniform(10);
if (arc4random_uniform(32) != 0)
in_len = arc4random_uniform(rt->in_len / 2);
in_len = arc4random_uniform(rt->out_len / 2);
in_len = arc4random_uniform(rt->len / 2);
in_len = arc4random_uniform(rt->len / 2);
part_len = arc4random_uniform(sizeof(buf));
drop = arc4random_uniform(ctx->drop_rand) == 0;
start = arc4random_uniform(128);
end = arc4random_uniform(128);
set = arc4random_uniform(2);
wrlock = arc4random_uniform(2);
kill(pids[arc4random_uniform(nprocs)], SIGUSR1);
kill(pids[arc4random_uniform(nprocs)], SIGUSR2);
pid_t pid = pids[arc4random_uniform(nprocs)];
fd = fd_base + arc4random_uniform(fd_num);
fd = fd_base + arc4random_uniform(fd_num);
fd = fd_base + arc4random_uniform(fd_num);
tmp->key = arc4random_uniform(MAX - MIN);
tmp->key = arc4random_uniform(MAX-MIN);
if (arc4random_uniform(8192) == 0) {
r = arc4random_uniform(10);
r = arc4random_uniform(10);
memset(dp, arc4random_uniform(255) + 1, r);
r = arc4random_uniform(8 * 1024);
r = arc4random_uniform(10);
r = arc4random_uniform(2 * 1024);
r = arc4random_uniform(16 * 1024);
p.id = arc4random_uniform(1000) + 11000;
iface->timo.tv_usec = arc4random_uniform(1000000);
iface->timo.tv_usec = arc4random_uniform(1000000);
arc4random_uniform(100)) / 1000);
start = arc4random_uniform(upper - lower) + lower;
jitter = 850 + arc4random_uniform(100);
seconds = sa->seconds * (850 + arc4random_uniform(100)) / 1000;
iface->timo.tv_usec = arc4random_uniform(1000000);
addr_proposal->timo.tv_usec = arc4random_uniform(1000000);
arc4random_uniform(PRIV_MAX_DESYNC_FACTOR);
dfr_proposal->timo.tv_usec = arc4random_uniform(1000000);
rdns_proposal->timo.tv_usec = arc4random_uniform(1000000);
uint32_t arc4random_uniform(uint32_t upper_bound);
uint32_t arc4random_uniform(uint32_t upper_bound);
return (long)arc4random_uniform((uint32_t)x);
for (space = 1 + arc4random_uniform(hppa_sid_max);
idx = arc4random_uniform(nitems(pcb->pcb_slb));
dfa.cnt = arc4random_uniform(nsyms);
if (arc4random_uniform(sili_error_test_inv_p) == 0) {
return arc4random_uniform(x);
return arc4random_uniform(x + 1);
seq = arc4random_uniform(MHI_BHI_TXDB_SEQNUM_BMSK);
seq = arc4random_uniform(MHI_BHIE_TXVECSTATUS_SEQNUM_BMSK);
seq = arc4random_uniform(MHI_BHIE_RXVECSTATUS_SEQNUM_BMSK);
seq = arc4random_uniform(MHI_BHI_TXDB_SEQNUM_BMSK);
seq = arc4random_uniform(MHI_BHIE_TXVECSTATUS_SEQNUM_BMSK);
seq = arc4random_uniform(MHI_BHIE_RXVECSTATUS_SEQNUM_BMSK);
dist = (vsize_t)arc4random_uniform(dist >> PAGE_SHIFT) << PAGE_SHIFT;
pid = 2 + arc4random_uniform(PID_MAX - 1);
bfd->bc_mintx * (arc4random_uniform(20) + 70) / 100);
i = 300 + arc4random_uniform(1 + 810 - 300);
msecs += arc4random_uniform(REKEY_TIMEOUT_JITTER);
msecs += arc4random_uniform(REKEY_TIMEOUT_JITTER);
r->prob <= arc4random_uniform(UINT_MAX - 1) + 1),
cut = arc4random_uniform(1 + high - low) + low;
addr = arc4random_uniform(mask + 1);
rpool->tblidx = (int)arc4random_uniform(cnt);
sec = 60 + arc4random_uniform(30);
#define IGMP_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
candidate = lower + arc4random_uniform(count);
i2 = arc4random_uniform(i + 1);
spi = sspi + arc4random_uniform(tspi - sspi);
p->ru_x = arc4random_uniform(p->ru_m);
j = arc4random_uniform(p->ru_n);
#define MLD_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
u_int32_t arc4random_uniform(u_int32_t);
DIP_ASSIGN(ip, gen, arc4random_uniform(UINT_MAX));
prefcg = arc4random_uniform(fs->fs_ncg);
(arc4random_uniform(arc4_arg) & ~(align - 1));
arc4random_uniform(nitems(uaddr->up_pivots))];
r = arc4random_uniform(PIVOT_RND) + arc4random_uniform(PIVOT_RND) -
minaddr += (vsize_t)arc4random_uniform(dist >> PAGE_SHIFT) <<
maxaddr -= (vsize_t)arc4random_uniform(dist >> PAGE_SHIFT) <<
addr = (vaddr_t)arc4random_uniform((u_int32_t)space) * align;
bodun = !arc4random_uniform(3);
j = arc4random_uniform(i);
y = arc4random_uniform(uintx) / (double)pow10;
usleep(arc4random_uniform(random_delay));
v = arc4random_uniform(i);
cp = arc4random_uniform(x + 1);
*p++ = arc4random_uniform(10) + '0';
msgid = arc4random_uniform(2147483647);
*cp = hashchars[arc4random_uniform(sizeof(hashchars) - 1)];
rate_fuzz = arc4random_uniform(fuzz_ns);
interval_ns += arc4random_uniform(fuzz_ns) + rate_fuzz;
arc4random_uniform(SSH_KEYSTROKE_CHAFF_RNG_MS));
which = arc4random_uniform(bestcount);
arc4random_uniform(sizeof(presentation_chars)-1)];
r = arc4random_uniform(26+26+10);
int ujitter = arc4random_uniform(4 * 1000000);
r = arc4random_uniform(100);
blen = arc4random_uniform(blen) + 1;
arc4random_uniform(10));
arc4random_uniform(10));
arc4random_uniform(10));
num1 = arc4random_uniform(num2 - num3 + 1) + num3;
num1 += arc4random_uniform(MINIMUM(num3, num2 - num1));
arc4random_uniform(IPPORT_HILASTAUTO - IPPORT_HIFIRSTAUTO));
buf[0] = 'a' + arc4random_uniform(26);
r = arc4random_uniform(36);
arc4random_uniform(0xffffff) | ISCSI_ISID_RAND;
initiator->config.isid_qual = arc4random_uniform(0xffff);
#define CACHE_LIFETIME(x) ((x) + (arc4random_uniform(x)))
slist_swap0(list, i - 1, (int)arc4random_uniform(i));
m = arc4random_uniform(i);
if((rrl_slip_ratio > 0) && ((rrl_slip_ratio == 1) || ((arc4random_uniform(rrl_slip_ratio)) == 0))) {
return (int) arc4random_uniform(max);
r = arc4random_uniform(SCALE_INTERVAL(interval));
r = arc4random_uniform(interval / 10);
arc4random_uniform(MAX_CHALLENGE_LENGTH - MIN_CHALLENGE_LENGTH + 1);
tv.tv_usec = arc4random_uniform(MAX_RA_DELAY_TIME * 1000);
tv.tv_usec = arc4random_uniform(1000000);
arc4random_uniform(MAX_RTR_ADV_INTERVAL - MIN_RTR_ADV_INTERVAL);
tv.tv_usec = arc4random_uniform(1000000);
n = arc4random_uniform(self->npools);
idx = (int)arc4random_uniform(rlt->rlt_nhosts);
i2 = arc4random_uniform(i + 1);
tv.tv_sec = KEEPALIVE + arc4random_uniform(OFFSET);
tv.tv_sec = KEEPALIVE + arc4random_uniform(OFFSET);
new_idx = arc4random_uniform(mft->filesz + 1);
if (arc4random_uniform(1U << RRDP_RANDOM_REINIT_MAX) < (1U << weeks)) {
tv.tv_usec = arc4random_uniform(1000000);
sel = (int)arc4random_uniform((uint32_t)num);
return (long)arc4random_uniform((uint32_t)x);