opnsense-src/lib/libc/stdlib
Andrey A. Chernov 49abb2a4f8 Back out "drop first N values" method of removing monotonically increased
seed->first value correlation. It breaks rand_r()... Other possible methods
like shuffling inside aray will breaks rand_r() too, because it assumes
only one word state, i.e. nothing extra can be added after seed assignment
in srand().

BTW, for old formulae seed->first value correlation is not so monotonically
increased as with other Linear Congruential Generators of this type only
becase arithmetic overflow happens. But overflow affects distribution
and lower bits very badly, as many articles says, such type of overflow
not improves PRNG.

So, monotonically increased seed->first value correlation problem remains...
2003-02-17 03:52:35 +00:00
..
_Exit.c Implement C99's _Exit() interface. 2002-09-10 02:04:49 +00:00
abort.3 Detail thread-safe and async-cancel-safe status. 2001-09-09 18:52:00 +00:00
abort.c Fix some comments. 2002-07-10 16:35:02 +00:00
abs.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
abs.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
alloca.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
atexit.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
atexit.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
atexit.h Fix the style of the SCM ID's. 2002-03-22 23:42:05 +00:00
atof.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
atof.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
atoi.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
atoi.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
atol.3 mdoc(7) police: add missing markup bits for ``errno''. 2002-01-09 14:03:54 +00:00
atol.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
atoll.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
bsearch.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
bsearch.c Remove __P() usage. 2002-03-21 22:49:10 +00:00
calloc.c Nonexistent SIZE_MAX -> SIZE_T_MAX 2002-08-04 04:11:48 +00:00
div.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
div.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
exit.3 mdoc(7) police: sort xrefs in SEE ALSO. 2002-12-13 16:53:51 +00:00
exit.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
getenv.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
getenv.c Remove __P() usage. 2002-03-21 22:49:10 +00:00
getopt.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
getopt.c Do not use __progname directly (except in [gs]etprogname(3)). 2002-03-29 22:43:43 +00:00
getopt_long.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
getopt_long.c de-__P() 2002-10-16 22:18:42 +00:00
getsubopt.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
getsubopt.c #include <string.h> for strcmp()'s prototype. 2003-01-03 23:31:50 +00:00
grantpt.3 Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin 2003-01-02 20:44:41 +00:00
grantpt.c Fix three warnings: 2003-01-04 08:10:55 +00:00
hcreate.3 mdoc(7) police: eliminate -ww warnings. 2001-07-09 15:54:36 +00:00
hcreate.c Remove improper use of <namespace.h> 2002-06-27 13:18:27 +00:00
heapsort.c Remove __P() usage. 2002-03-21 22:49:10 +00:00
imaxabs.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
imaxabs.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
imaxdiv.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
imaxdiv.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
insque.3 mdoc(7) police: sweep. 2002-11-29 16:42:23 +00:00
insque.c style(9): return type on separate line from function name. 2003-01-04 07:34:41 +00:00
labs.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
labs.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ldiv.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
ldiv.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
llabs.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
llabs.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
lldiv.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
lldiv.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
lsearch.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
lsearch.c - Remove the lsearch() and lfind() functions and their manpage from 2002-10-16 14:29:23 +00:00
Makefile.inc Add an MLINK malloc.conf(5) -> malloc(3). 2003-01-24 13:58:56 +00:00
malloc.3 mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
malloc.c Catch some cases where asking for ridiculously large allocations could 2003-01-30 15:00:17 +00:00
memory.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
merge.c Remove __P() usage. 2002-03-21 22:49:10 +00:00
putenv.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
qsort.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
qsort.c Implement C99's _Exit() interface. 2002-09-10 02:04:49 +00:00
qsort_r.c Implement C99's _Exit() interface. 2002-09-10 02:04:49 +00:00
radixsort.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
radixsort.c Remove multi-line __P() usage. 2002-03-22 09:22:15 +00:00
rand.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
rand.c Back out "drop first N values" method of removing monotonically increased 2003-02-17 03:52:35 +00:00
random.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
random.c For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}() 2003-02-04 11:24:08 +00:00
reallocf.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
realpath.3 realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX. 2003-01-15 21:22:55 +00:00
realpath.c realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX. 2003-01-15 21:22:55 +00:00
remque.c style(9): return type on separate line from function name. 2003-01-04 07:34:41 +00:00
setenv.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
strfmon.3 strfmon(3) does not correctly handle multibyte characters in the 2003-01-06 06:21:25 +00:00
strfmon.c Remove unused variable: ntmp. 2003-01-03 23:34:26 +00:00
strhash.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
strtod.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
strtod.c Define `Sudden_Underflow' when compiling for the Alpha 2002-11-14 17:06:01 +00:00
strtoimax.c Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
strtol.3 Add cross-references to wide character versions of these functions. 2002-10-10 04:31:57 +00:00
strtol.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strtoll.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strtoq.c - Add the 'restrict' qualifier to the function prototypes and 2002-08-15 09:25:04 +00:00
strtoul.3 Add cross-references to wide character versions of these functions. 2002-10-10 04:31:57 +00:00
strtoul.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strtoull.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strtoumax.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strtouq.c - Add the 'restrict' qualifier to the function prototypes and 2002-08-15 09:25:04 +00:00
system.3 Remove spurious period. 2002-05-27 03:45:27 +00:00
system.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
tdelete.c No need to include <assert.h> here. 2003-01-05 02:43:18 +00:00
tfind.c No need to include <assert.h> here. 2003-01-05 02:43:18 +00:00
tsearch.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
tsearch.c No need to include <assert.h> here. 2003-01-05 02:43:18 +00:00
twalk.c No need to include <assert.h> here. 2003-01-05 02:43:18 +00:00