Home
last modified time | relevance | path

Searched refs:arc4random (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/freebsd/tools/test/stress2/misc/
H A Dmmap48.sh61 if (arc4random() % 100 < 10)
67 i = arc4random() % siz;
70 usleep(arc4random() % 400);
81 if (arc4random() % 100 < 10)
87 i = arc4random() % siz;
93 usleep(arc4random() % 400);
105 if (arc4random() % 100 < 10)
111 s = arc4random() % sizeof(buf) + 1;
112 pos = arc4random() % (siz - s);
125 usleep(arc4random() % 200);
[all …]
H A Dmmap2.sh75 p = (void *)STARTADDR + trunc_page(arc4random() % ADRSPACE); function
77 len = trunc_page(arc4random() % left) + PAGE_SIZE; function
80 if (arc4random() % 100 < 90) function
84 if (arc4random() % 2 == 0) { function
89 if (arc4random() % 2 == 0) { function
122 if (arc4random() % 2 == 0) { function
123 m = arc4random() % 10; function
127 if (arc4random() %2 == 0) function
128 if (mprotect(p, trunc_page(arc4random() % len), PROT_READ) == -1 ) function
130 if (arc4random() % 2 == 0) { function
[all …]
H A Dmmap3.sh85 v = arc4random(); function
87 v = v << 32 | arc4random(); function
89 madvise((void *)v, arc4random(), arc4random());
90 mprotect((void *)v, arc4random(), arc4random());
91 msync((void *)v, arc4random(), arc4random());
123 m = arc4random() % 10;
126 if (mprotect(p, trunc_page(arc4random() % len), PROT_READ) == -1 )
153 n = arc4random() % 14 + 5;
H A Dmmap6.sh88 c = p1[arc4random() % len];
89 c = p2[arc4random() % len];
90 if (arc4random() % 100 < 50) function
93 c = p1[arc4random() % len];
120 p1[arc4random() % len] = 1;
121 p2[arc4random() % len] = 1;
122 if (arc4random() % 100 < 50) function
125 p1[arc4random() % len] = 1;
126 if (arc4random() % 100 < 50) function
141 if (arc4random() % 100 < 30) function
H A Dwrite.sh113 return (arc4random() % (ma - mi + 1) + mi); function
141 if (lseek(fd, 2LL << (arc4random() % 18), function
174 parallel = arc4random() % MAXPROC + 1; function
176 if (arc4random() % 100 < 10) function
177 t[i].blocksize = (arc4random() + 1) % MAXBLK; function
179 t[i].blocksize = 2 << (arc4random() % 20); function
180 t[i].sequential = arc4random() % 2; function
181 t[i].mindelay = arc4random() % 50; function
182 t[i].maxdelay = t[i].mindelay + arc4random() % 100; function
183 t[i].blocks = 2LL << (arc4random() % 18); function
H A Dsem_post.sh49 usleep(arc4random() % 100);
52 usleep(arc4random() % 100);
53 if (arc4random() % 100 < 3)
80 usleep(arc4random() % 100);
83 usleep(arc4random() % 100);
84 if (arc4random() % 100 < 3)
H A Dmmap47.sh67 i = arc4random() % siz;
70 usleep(arc4random() % 200);
84 i = arc4random() % siz;
90 usleep(arc4random() % 200);
105 s = arc4random() % sizeof(buf) + 1;
106 pos = arc4random() % (siz - s);
119 usleep(arc4random() % 200);
139 usleep(arc4random() % 1000);
167 for (i = 0; i < (int)(arc4random() % 10 + 1); i++) {
171 for (i = 0; i < (int)(arc4random() % 10 + 1); i++) {
[all …]
H A Dsetsockopt.sh89 if ((tcpsock = socket(arc4random() % 64, arc4random() % 10, arc4random() % 10)) != -1) function
101 r = setsockopt(tcpsock, arc4random(), arc4random(), (char *)&on, sizeof(on)); function
114 inetaddr.sin_family = arc4random() % 128; function
116 inetaddr.sin_addr.s_addr = arc4random(); function
H A Dmmap44.sh65 i = arc4random() % siz;
68 usleep(arc4random() % 400);
80 i = arc4random() % siz;
86 usleep(arc4random() % 400);
99 s = arc4random() % sizeof(buf) + 1;
100 pos = arc4random() % (siz - s);
113 usleep(arc4random() % 400);
125 usleep(arc4random() % 1000);
137 usleep(arc4random() % 1000);
151 if (lseek(fd, arc4random() % siz, SEEK_END) == -1)
[all …]
H A Dcollapse.sh85 shared = arc4random() & 0x1; function
86 len = roundup2(arc4random() % ((ADRSPACE - i) / 4), function
101 delay = arc4random() % (CHILDTIME - 1); function
102 run = arc4random() % (CHILDTIME - delay); function
109 off = rounddown2(arc4random() % ADRSPACE, PAGE_SIZE); function
139 n = arc4random() % PARALLEL + 1; function
H A Dmmap7.sh80 p1[arc4random() % len] = 1;
81 p2[arc4random() % len] = 1;
83 if (arc4random() % 100 < 30) function
84 i = p3[arc4random() % len];
86 if (arc4random() % 100 < 50) function
89 if (arc4random() % 100 < 50) function
H A Dposix_fadvise3.sh72 val = arc4random(); function
73 i = arc4random() % 100; function
82 val = (val << 32) | arc4random(); function
108 r[j] = arc4random();
113 advise = arc4random() % 6;
H A Dmmap45.sh57 i = arc4random() % siz;
60 usleep(arc4random() % 400);
72 i = arc4random() % siz;
78 usleep(arc4random() % 400);
91 s = arc4random() % sizeof(buf) + 1;
92 pos = arc4random() % (siz - s);
105 usleep(arc4random() % 400);
117 usleep(arc4random() % 1000);
129 usleep(arc4random() % 1000);
H A Dmmap15.sh94 val = arc4random(); function
95 i = arc4random() % 100; function
104 val = (val << 32) | arc4random(); function
119 val = (unsigned long)p + arc4random();
166 if (arc4random() % 100 < 50)
210 r[i] = arc4random();
H A Dminherit.sh104 shared = arc4random() & 0x1; function
105 len = roundup2(arc4random() % ((ADRSPACE - i) / 4), function
112 n = arc4random() % CHILDREN + 1; function
118 usleep(arc4random() % 100); function
123 if (arc4random() % 100 < 5) function
124 usleep(arc4random() % 50); function
H A Dfcntl2.sh103 val = arc4random(); function
104 i = arc4random() % 100; function
113 val = (val << 32) | arc4random(); function
138 n = arc4random() % 100 + 1;
144 cmd = arc4random() % 20;
175 r[i] = arc4random();
H A Dmmap14.sh101 val = arc4random(); function
102 i = arc4random() % 100; function
111 val = (val << 32) | arc4random(); function
126 val = (unsigned long)p + arc4random();
177 if (arc4random() % 100 < 50)
239 r[i] = arc4random();
H A Dsendmsg.sh92 i = arc4random() % 100; function
97 flag = 2 << (arc4random() % 9); function
99 flag = arc4random(); function
110 i = arc4random() % len; function
112 bit = arc4random() % 8; function
170 if (arc4random() % 2 == 0)
H A Dmmap46.sh59 i = arc4random() % siz;
62 usleep(arc4random() % 200);
76 i = arc4random() % siz;
82 usleep(arc4random() % 200);
97 s = arc4random() % sizeof(buf) + 1;
98 pos = arc4random() % (siz - s);
111 usleep(arc4random() % 200);
124 usleep(arc4random() % 1000);
H A Dsetsockopt2.sh118 domain = arc4random() % 256; function
119 typ = arc4random() % 10; function
120 if (arc4random() % 100 < 20) function
121 prot = arc4random() % 10; function
155 sun.sun_len = arc4random() % 128; function
156 sun.sun_family = arc4random() % 10; function
H A Dmmap10.sh93 val = arc4random(); function
94 i = arc4random() % 100; function
103 val = (val << 32) | arc4random(); function
118 val = (unsigned long)p + arc4random();
173 if (arc4random() % 100 < 50)
265 r[i] = arc4random();
H A Dmmap27.sh84 p = (void *)STARTADDR + trunc_page(arc4random() % ADRSPACE); function
86 len = trunc_page(arc4random() % left) + PAGE_SIZE; function
96 val = p[arc4random() % len];
113 n = arc4random() % PARALLEL + 1; function
/freebsd/sys/netinet6/
H A Dip6_id.c187 p->ru_x = arc4random() % p->ru_m; in initid()
190 p->ru_seed = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
191 p->ru_seed2 = arc4random() & (~0U >> (32 - p->ru_bits + 1)); in initid()
194 p->ru_b = (arc4random() & (~0U >> (32 - p->ru_bits))) | 1; in initid()
196 (arc4random() & (~0U >> (32 - p->ru_bits))) & (~1U), p->ru_m); in initid()
200 j = arc4random() % p->ru_n; in initid()
234 n = arc4random() & 0x3; in randomid()
/freebsd/contrib/ntp/sntp/libevent/
H A Devutil_rand.c56 (void) arc4random(); in evutil_secure_rng_init()
99 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
106 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
111 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
/freebsd/contrib/libevent/
H A Devutil_rand.c56 (void) arc4random(); in evutil_secure_rng_init()
99 ev_uint32_t u = arc4random(); in ev_arc4random_buf()
106 *(ev_uint32_t*)b = arc4random(); in ev_arc4random_buf()
111 ev_uint32_t u = arc4random(); in ev_arc4random_buf()

12345678910>>...15