summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/drand48.c
AgeCommit message (Collapse)Author
2015-09-14Only two of the *rand48.c files need <math.h>, so just #include it in themPhilip Guenther
2015-08-27Move the __rand48_* declarations into rand48.h, and then hide both themPhilip Guenther
and __dorand48() and __rand48_deterministic ok deraadt@
2014-12-09random seed buffer must be unsignedTheo de Raadt
2014-12-08Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()Theo de Raadt
to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
1996-08-19Fix RCS idsThorsten Lockert
Make sure everything uses {SYS,}LIBC_SCCS properly
1995-10-18initial import of NetBSD treeTheo de Raadt