/openbsd/regress/usr.bin/ssh/unittests/sshbuf/ |
H A D | test_sshbuf_fuzz.c | 45 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/games/wump/ |
H A D | wump.c | 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() 544 lastchance = arc4random_uniform(3); in shoot() 598 delta = arc4random_uniform(room_num - 1) + 1; in cave_init() 689 j = arc4random_uniform(20 - i); in dodecahedral_cave_init() 742 loc = arc4random_uniform(room_num) + 1; in initialize_things_in_cave() [all …]
|
/openbsd/regress/lib/libc/malloc/malloc_general/ |
H A D | malloc_general.c | 30 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/games/rain/ |
H A D | rain.c | 102 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/lib/libc/crypt/ |
H A D | arc4random_uniform.c | 33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() function 57 DEF_WEAK(arc4random_uniform);
|
H A D | Makefile.inc | 5 SRCS+= crypt.c cryptutil.c arc4random.c arc4random_uniform.c \
|
/openbsd/sys/dev/pci/drm/include/linux/ |
H A D | random.h | 18 return arc4random_uniform(x); in get_random_u32_below() 48 return arc4random_uniform(x + 1); in prandom_u32_max()
|
/openbsd/regress/sys/kern/signal/signal-stress/ |
H A D | signal-stress.c | 150 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/games/arithmetic/ |
H A D | arithmetic.c | 178 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/sys/netinet6/ |
H A D | ip6_id.c | 165 p->ru_x = arc4random_uniform(p->ru_m); in ip6id_initid() 178 j = arc4random_uniform(p->ru_n); in ip6id_initid()
|
H A D | mld6_var.h | 38 #define MLD_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
|
/openbsd/games/mille/ |
H A D | roll.c | 51 tot += arc4random_uniform(nsides) + 1; in roll()
|
/openbsd/games/monop/ |
H A D | roll.c | 45 tot += arc4random_uniform(nsides) + 1; in roll()
|
/openbsd/lib/libc/net/ |
H A D | res_random.c | 180 ru_x = arc4random_uniform(RU_M); in res_initid() 194 j = arc4random_uniform(RU_N); in res_initid()
|
/openbsd/games/boggle/boggle/ |
H A D | bog.c | 610 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/games/cribbage/ |
H A D | crib.c | 195 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/regress/lib/libcrypto/rc4/ |
H A D | rc4_test.c | 380 in_len = arc4random_uniform(rt->len / 2); in rc4_test() 426 in_len = arc4random_uniform(rt->len / 2); in rc4_test()
|
/openbsd/games/robots/ |
H A D | rnd_pos.c | 58 return arc4random_uniform(range); in rnd()
|
/openbsd/sys/netinet/ |
H A D | ip_id.c | 63 i2 = arc4random_uniform(i + 1); in ip_randomid()
|
H A D | igmp_var.h | 106 #define IGMP_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
|
/openbsd/games/tetris/ |
H A D | tetris.c | 143 tmp = &shapes[arc4random_uniform(7)]; in randshape() 144 j = arc4random_uniform(4); in randshape()
|
/openbsd/usr.sbin/rad/ |
H A D | engine.c | 581 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/usr.sbin/relayd/ |
H A D | shuffle.c | 41 i2 = arc4random_uniform(i + 1); in shuffle_init()
|
/openbsd/games/hangman/ |
H A D | getword.c | 62 pos = arc4random_uniform(Dict_size); in getword()
|
/openbsd/games/adventure/ |
H A D | wizard.c | 126 return (arc4random_uniform(range)); in ran()
|