775372e52e
One bug fixed: Use getmicrouptime() to trigger reseeds so that we cannot be tricked by a clock being stepped backwards. Express parameters in natural units and with natural names. Don't use struct timeval more than we need to. Various stylistic and readability polishing. Introduce arc4rand(void *ptr, u_int len, int reseed) function which returns a stream of pseudo-random bytes, observing the automatic reseed criteria as well as allowing forced reseeds. Rewrite arc4random() in terms of arc4rand(). Sponsored by: DARPA & NAI Labs. |
||
---|---|---|
.. | ||
alpha | ||
ia64 | ||
arc4random.c | ||
ashldi3.c | ||
ashrdi3.c | ||
bcd.c | ||
bcmp.c | ||
bsearch.c | ||
crc32.c | ||
divdi3.c | ||
ffs.c | ||
fnmatch.c | ||
iconv_converter_if.m | ||
iconv_xlat.c | ||
iconv.c | ||
index.c | ||
inet_ntoa.c | ||
lshrdi3.c | ||
mcount.c | ||
moddi3.c | ||
qdivrem.c | ||
qsort.c | ||
quad.h | ||
random.c | ||
rindex.c | ||
scanc.c | ||
skpc.c | ||
strcat.c | ||
strcmp.c | ||
strcpy.c | ||
strlcat.c | ||
strlcpy.c | ||
strlen.c | ||
strncmp.c | ||
strncpy.c | ||
strsep.c | ||
strtol.c | ||
strtoq.c | ||
strtoul.c | ||
strtouq.c | ||
strvalid.c | ||
ucmpdi2.c | ||
udivdi3.c | ||
umoddi3.c |