summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-271-3/+3
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-121-3/+3
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* srandomdev: use stack junk value in the fallback code tooache1997-06-151-2/+3
|
* Instead of copying fallback code over and over in each program,ache1997-06-141-9/+16
| | | | | | implement (better) falback code inside srandomdev() itself. Change return type from int to void (binary compatibility surprisely achieved). Userland code will be changed soon.
* Remove orand* code as promised for the next releaseache1997-03-291-8/+3
|
* Fix urandom reference in the commentache1997-03-231-1/+1
|
* Add srandomdev() function (use "/dev/urandom" now)ache1997-03-231-0/+40
| | | | Submitted by: wollman & me (add type casts and remove unneded loop)
* Merge Lite2 changespeter1997-03-111-30/+68
|
* Improve seeding, the random sequence did not vary matchache1996-10-091-5/+55
| | | | with the seed. Old variant will be available via libcompat soon.
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* u_int -> unsigned int, so that we don't have to include <sys/types.h>bde1994-09-051-2/+2
| | | | or depend on <stdio.h> bogusly including it.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+363
OpenPOWER on IntegriCloud