Home
last modified time | relevance | path

Searched refs:arc4random_uniform (Results 1 – 25 of 138) sorted by relevance

123456

/openbsd/src/regress/usr.bin/ssh/unittests/sshbuf/
Dtest_sshbuf_fuzz.c45 r = arc4random_uniform(10); in sshbuf_fuzz_tests()
48 r = arc4random_uniform(10); in sshbuf_fuzz_tests()
63 memset(dp, arc4random_uniform(255) + 1, r); in sshbuf_fuzz_tests()
67 r = arc4random_uniform(8 * 1024); in sshbuf_fuzz_tests()
71 r = arc4random_uniform(10); in sshbuf_fuzz_tests()
89 r = arc4random_uniform(2 * 1024); in sshbuf_fuzz_tests()
93 r = arc4random_uniform(16 * 1024); in sshbuf_fuzz_tests()
100 if (arc4random_uniform(8192) == 0) { in sshbuf_fuzz_tests()
/openbsd/src/games/wump/
Dwump.c208 bat_num += arc4random_uniform(room_num / 2 - bat_num); in main()
210 pit_num += arc4random_uniform(room_num / 2 - pit_num); in main()
321 if (arc4random_uniform(15) == 1) in take_action()
374 if (arc4random_uniform(6) == 1) { in move_to()
399 if (arc4random_uniform(12) < 2) { in move_to()
416 arc4random_uniform(room_num) + 1; in move_to()
469 chance = arc4random_uniform(10); in shoot()
495 link = (arc4random_uniform(link_num)); in shoot()
539 if (arc4random_uniform(level == EASY ? 12 : 9) < lastchance) { in shoot()
544 lastchance = arc4random_uniform(3); in shoot()
[all …]
/openbsd/src/regress/lib/libc/malloc/malloc_general/
Dmalloc_general.c30 int p = arc4random_uniform(17) + 3; in size()
31 return arc4random_uniform(1 << p); in size()
67 p = arc4random_uniform(2); in main()
68 i = arc4random_uniform(N); in main()
84 r = arc4random_uniform(2); in main()
115 r = arc4random_uniform(2); in main()
/openbsd/src/games/rain/
Drain.c102 xpos[j] = arc4random_uniform(tcols) + 2; in main()
103 ypos[j] = arc4random_uniform(tlines) + 2; in main()
110 x = arc4random_uniform(tcols) + 2; in main()
111 y = arc4random_uniform(tlines) + 2; in main()
/openbsd/src/lib/libc/crypt/
Darc4random_uniform.c33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() function
57 DEF_WEAK(arc4random_uniform);
DMakefile.inc5 SRCS+= crypt.c cryptutil.c arc4random.c arc4random_uniform.c \
/openbsd/src/sys/dev/pci/drm/include/linux/
Drandom.h18 return arc4random_uniform(x); in get_random_u32_below()
48 return arc4random_uniform(x + 1); in prandom_u32_max()
/openbsd/src/regress/sys/kern/signal/signal-stress/
Dsignal-stress.c150 kill(pids[arc4random_uniform(nprocs)], SIGUSR1); in main()
151 kill(pids[arc4random_uniform(nprocs)], SIGUSR2); in main()
157 pid_t pid = pids[arc4random_uniform(nprocs)]; in main()
/openbsd/src/games/arithmetic/
Darithmetic.c178 op = keys[arc4random_uniform(nkeys)]; in problem()
199 left = right * result + arc4random_uniform(right); in problem()
310 value = arc4random_uniform(maxval + penalty[op][operand]); in getrandom()
/openbsd/src/sys/netinet6/
Dip6_id.c165 p->ru_x = arc4random_uniform(p->ru_m); in ip6id_initid()
178 j = arc4random_uniform(p->ru_n); in ip6id_initid()
Dmld6_var.h38 #define MLD_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
/openbsd/src/lib/libc/net/
Dres_random.c180 ru_x = arc4random_uniform(RU_M); in res_initid()
194 j = arc4random_uniform(RU_N); in res_initid()
/openbsd/src/games/monop/
Droll.c45 tot += arc4random_uniform(nsides) + 1; in roll()
/openbsd/src/games/mille/
Droll.c51 tot += arc4random_uniform(nsides) + 1; in roll()
/openbsd/src/games/cribbage/
Dcrib.c195 i = arc4random_uniform(CARDS); /* random cut */ in game()
197 j = arc4random_uniform(CARDS); in game()
377 i = arc4random_uniform(CARDS - pos); in cut()
388 i = arc4random_uniform(CARDS - pos) + pos; in cut()
/openbsd/src/games/boggle/boggle/
Dbog.c610 q = (int)arc4random_uniform(p + 1); in newgame()
618 board[i] = cubes[i][arc4random_uniform(6)]; in newgame()
625 i = arc4random_uniform(ncubes); in newgame()
626 board[i] = SETHI(chal_cube[arc4random_uniform(6)]); in newgame()
/openbsd/src/regress/lib/libcrypto/rc4/
Drc4_test.c380 in_len = arc4random_uniform(rt->len / 2); in rc4_test()
426 in_len = arc4random_uniform(rt->len / 2); in rc4_test()
/openbsd/src/games/robots/
Drnd_pos.c58 return arc4random_uniform(range); in rnd()
/openbsd/src/games/tetris/
Dtetris.c143 tmp = &shapes[arc4random_uniform(7)]; in randshape()
144 j = arc4random_uniform(4); in randshape()
/openbsd/src/sys/netinet/
Dip_id.c63 i2 = arc4random_uniform(i + 1); in ip_randomid()
Digmp_var.h106 #define IGMP_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
/openbsd/src/usr.sbin/rad/
Dengine.c581 tv.tv_usec = arc4random_uniform(MAX_RA_DELAY_TIME * 1000); in parse_rs()
612 tv.tv_usec = arc4random_uniform(1000000); in update_iface()
652 arc4random_uniform(MAX_RTR_ADV_INTERVAL - MIN_RTR_ADV_INTERVAL); in iface_timeout()
653 tv.tv_usec = arc4random_uniform(1000000); in iface_timeout()
/openbsd/src/usr.sbin/relayd/
Dshuffle.c41 i2 = arc4random_uniform(i + 1); in shuffle_init()
/openbsd/src/games/hangman/
Dgetword.c62 pos = arc4random_uniform(Dict_size); in getword()
/openbsd/src/games/adventure/
Dwizard.c126 return (arc4random_uniform(range)); in ran()

123456