a212d0b2e8
srandom(9) is meaningless on SMP systems or any system with, say, interrupts. One could never rely on random(9) to produce a reproducible sequence of outputs on the basis of a specific srandom() seed because the global state was shared by all kernel contexts. As such, removing it is literally indistinguishable to random(9) consumers (as compared with retaining it). Mark random(9) as deprecated and slated for quick removal. This is not to say we intend to remove all fast, non-cryptographic PRNG(s) in the kernel. It/they just won't be random(9), as it exists today, in either name or implementation. Before random(9) is removed, a replacement will be provided and in-tree consumers will be converted. Note that despite the name, the random(9) interface does not bear any resemblance to random(3). Instead, it is the same crummy 1988 Park-Miller LCG used in libc rand(3). |
||
---|---|---|
.. | ||
arm | ||
arm64 | ||
x86 | ||
arc4random.c | ||
ashldi3.c | ||
ashrdi3.c | ||
asprintf.c | ||
bcd.c | ||
bcmp.c | ||
bcopy.c | ||
bsearch.c | ||
cmpdi2.c | ||
divdi3.c | ||
explicit_bzero.c | ||
ffs.c | ||
ffsl.c | ||
ffsll.c | ||
fls.c | ||
flsl.c | ||
flsll.c | ||
fnmatch.c | ||
gsb_crc32.c | ||
iconv_converter_if.m | ||
iconv_ucs.c | ||
iconv_xlat16.c | ||
iconv_xlat.c | ||
iconv.c | ||
inet_aton.c | ||
inet_ntoa.c | ||
inet_ntop.c | ||
inet_pton.c | ||
jenkins_hash.c | ||
lshrdi3.c | ||
mcount.c | ||
memcchr.c | ||
memchr.c | ||
memcmp.c | ||
memmem.c | ||
memset.c | ||
moddi3.c | ||
murmur3_32.c | ||
qdivrem.c | ||
qsort_r.c | ||
qsort.c | ||
quad.h | ||
random.c | ||
scanc.c | ||
strcasecmp.c | ||
strcat.c | ||
strchr.c | ||
strchrnul.c | ||
strcmp.c | ||
strcpy.c | ||
strcspn.c | ||
strdup.c | ||
strlcat.c | ||
strlcpy.c | ||
strlen.c | ||
strncat.c | ||
strncmp.c | ||
strncpy.c | ||
strndup.c | ||
strnlen.c | ||
strrchr.c | ||
strsep.c | ||
strspn.c | ||
strstr.c | ||
strtol.c | ||
strtoq.c | ||
strtoul.c | ||
strtouq.c | ||
strvalid.c | ||
timingsafe_bcmp.c | ||
ucmpdi2.c | ||
udivdi3.c | ||
umoddi3.c |