summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/rand.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GNU ld has prefixed the contents of .gnu.warning.SYMBOL sectionstb2017-11-281-3/+3
| | | | | | | | with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
* $OpenBSD$tb2016-10-221-0/+1
|
* Simplify return call of rand() and rand_r() to make it easier to read.tb2015-12-181-2/+2
| | | | | | | | | This is slightly less robust, but RAND_MAX must be one below a power of two in both variants anyway. Based on a suggestion by Matthew Martin. ok tedu@
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-131-0/+1
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* typo; ok deraadtsthen2014-12-161-1/+1
|
* improve warnings from rand_r(), rand(), and random()libressl-v2.1.2deraadt2014-12-091-2/+2
| | | | | It may take a few iterations to get the tone right. previously discussed with millert
* Oops, got the sense of the test backwards. Hilarious that we didn't spot it.deraadt2014-12-081-1/+1
|
* Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()deraadt2014-12-081-5/+10
| | | | | | | | | | | | | | | | | 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
* Add linker warnings for rand() and random() and various related functions.kettenis2013-08-011-0/+15
| | | | ok deraadt@
* zap remaining rcsid.espie2005-08-081-4/+0
| | | | | | Kill old files that are no longer compiled. okay theo
* ansi + de-registerpat2005-03-301-9/+4
| | | | ok otto deraadt
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* No need to cast to they type we already are. Also minor KNFmillert1998-12-071-3/+6
|
* remove bogus divide, fixes pr #656millert1998-12-071-2/+2
|
* bad longderaadt1998-11-221-2/+2
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+10
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* Fix RCS idstholo1996-08-191-2/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+55