freebsd-dev/sys/libkern
Poul-Henning Kamp 2c38619b52 Slight overhaul of arc4random() and friends.
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.
2002-10-11 13:13:08 +00:00
..
alpha Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
ia64 Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
arc4random.c Slight overhaul of arc4random() and friends. 2002-10-11 13:13:08 +00:00
ashldi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
ashrdi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
bcd.c
bcmp.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
bsearch.c Remove bogus include of <machine/ansi.h>. 2002-04-11 06:53:40 +00:00
crc32.c For some reason this didn't get added in my previous commit. 2002-05-29 21:58:12 +00:00
divdi3.c
ffs.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
fnmatch.c Import the libc fnmatch() into the kernel. This will be used by, 2002-10-08 04:15:55 +00:00
iconv_converter_if.m Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
iconv_xlat.c Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
iconv.c Fix a bunch of s/int */size_t */. 2002-10-06 12:20:09 +00:00
index.c
inet_ntoa.c
lshrdi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
mcount.c Remove __P. 2002-03-20 02:15:46 +00:00
moddi3.c
qdivrem.c
qsort.c Remove __P. 2002-03-20 02:15:46 +00:00
quad.h Allow for multiple #includes of this file. 2002-10-08 07:24:19 +00:00
random.c
rindex.c
scanc.c
skpc.c
strcat.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strcmp.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strcpy.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strlcat.c Use sys/libkern.h not /usr/include/string.h 2002-09-06 06:04:36 +00:00
strlcpy.c Use sys/libkern.h not /usr/include/string.h 2002-09-06 06:04:36 +00:00
strlen.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strncmp.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strncpy.c Include sys/libkern.h for the kernel prototypes of these libkern functions 2002-08-22 20:08:07 +00:00
strsep.c Hook up strsep(3) to libkern following a repo-copy by Peter. This will 2002-10-10 17:02:11 +00:00
strtol.c
strtoq.c
strtoul.c
strtouq.c
strvalid.c DBA update: used the wrong of several NAI DBAs. 2002-03-07 17:52:03 +00:00
ucmpdi2.c
udivdi3.c
umoddi3.c