Searched refs:rnd (Results 1 – 2 of 2) sorted by relevance
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/ |
A D | arc4random.c | 101 u_char rnd[128]; in arc4_stir() local 109 read(fd, rnd, sizeof(rnd)); in arc4_stir() 120 rnd[0] = (tv.tv_sec % 10000) * 3 + tv.tv_usec * 7 + \ in arc4_stir() 132 if (rnd[n] == 0) { in arc4_stir() 133 rnd[n] = ((rnd[n - 1] + n) ^ \ in arc4_stir() 142 rnd[0] = (getpid() % 1000) * 19; in arc4_stir() 144 if (rnd[n] == 0) { in arc4_stir() 145 rnd[n] = ((rnd[n - 1] + n) ^ \ in arc4_stir() 152 arc4_addrandom(as, rnd, sizeof(rnd)); in arc4_stir()
|
/l4re-core-master/lua/lib/contrib/src/ |
A D | ltablib.c | 249 unsigned int i, rnd = 0; in l_randomizePivot() local 253 rnd += buff[i]; in l_randomizePivot() 254 return rnd; in l_randomizePivot() 333 static IdxT choosePivot (IdxT lo, IdxT up, unsigned int rnd) { in choosePivot() argument 335 IdxT p = rnd % (r4 * 2) + (lo + r4); in choosePivot() 345 unsigned int rnd) { in auxsort() argument 358 if (up - lo < RANLIMIT || rnd == 0) /* small interval or no randomize? */ in auxsort() 361 p = choosePivot(lo, up, rnd); in auxsort() 383 auxsort(L, lo, p - 1, rnd); /* call recursively for lower interval */ in auxsort() 388 auxsort(L, p + 1, up, rnd); /* call recursively for upper interval */ in auxsort() [all …]
|
Completed in 6 milliseconds