/freebsd/tools/test/stress2/misc/ |
H A D | mmap48.sh | 61 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 D | mmap2.sh | 75 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 D | mmap3.sh | 85 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 D | mmap6.sh | 88 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 D | write.sh | 113 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 D | sem_post.sh | 49 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 D | mmap47.sh | 67 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 D | setsockopt.sh | 89 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 D | mmap44.sh | 65 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 D | collapse.sh | 85 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 D | mmap7.sh | 80 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 D | posix_fadvise3.sh | 72 val = arc4random(); function 73 i = arc4random() % 100; function 82 val = (val << 32) | arc4random(); function 108 r[j] = arc4random(); 113 advise = arc4random() % 6;
|
H A D | mmap45.sh | 57 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 D | mmap15.sh | 94 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 D | minherit.sh | 104 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 D | fcntl2.sh | 103 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 D | mmap14.sh | 101 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 D | sendmsg.sh | 92 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 D | mmap46.sh | 59 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 D | setsockopt2.sh | 118 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 D | mmap10.sh | 93 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 D | mmap27.sh | 84 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 D | ip6_id.c | 187 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 D | evutil_rand.c | 56 (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 D | evutil_rand.c | 56 (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()
|