Home
last modified time | relevance | path

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

123456

/openbsd/regress/usr.bin/ssh/unittests/sshbuf/
H A 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/games/wump/
H A Dwump.c321 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 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/games/rain/
H A 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/lib/libc/crypt/
H A Darc4random_uniform.c33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() function
57 DEF_WEAK(arc4random_uniform);
H A DMakefile.inc5 SRCS+= crypt.c cryptutil.c arc4random.c arc4random_uniform.c \
/openbsd/sys/dev/pci/drm/include/linux/
H A Drandom.h18 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 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/games/arithmetic/
H A 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/sys/netinet6/
H A Dip6_id.c165 p->ru_x = arc4random_uniform(p->ru_m); in ip6id_initid()
178 j = arc4random_uniform(p->ru_n); in ip6id_initid()
H A Dmld6_var.h38 #define MLD_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
/openbsd/games/mille/
H A Droll.c51 tot += arc4random_uniform(nsides) + 1; in roll()
/openbsd/games/monop/
H A Droll.c45 tot += arc4random_uniform(nsides) + 1; in roll()
/openbsd/lib/libc/net/
H A Dres_random.c180 ru_x = arc4random_uniform(RU_M); in res_initid()
194 j = arc4random_uniform(RU_N); in res_initid()
/openbsd/games/boggle/boggle/
H A 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/games/cribbage/
H A 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/regress/lib/libcrypto/rc4/
H A 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/games/robots/
H A Drnd_pos.c58 return arc4random_uniform(range); in rnd()
/openbsd/sys/netinet/
H A Dip_id.c63 i2 = arc4random_uniform(i + 1); in ip_randomid()
H A Digmp_var.h106 #define IGMP_RANDOM_DELAY(X) (arc4random_uniform(X) + 1)
/openbsd/games/tetris/
H A Dtetris.c143 tmp = &shapes[arc4random_uniform(7)]; in randshape()
144 j = arc4random_uniform(4); in randshape()
/openbsd/usr.sbin/rad/
H A 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/usr.sbin/relayd/
H A Dshuffle.c41 i2 = arc4random_uniform(i + 1); in shuffle_init()
/openbsd/games/hangman/
H A Dgetword.c62 pos = arc4random_uniform(Dict_size); in getword()
/openbsd/games/adventure/
H A Dwizard.c126 return (arc4random_uniform(range)); in ran()

123456