Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a time | otto | 2005-11-30 | 1 | -38/+11 |
| | | | | | | | and remove fallback code. If somebody is dumb enough to make the sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls on process startup. looks good miod@ ok deraadt@ tedu@ | ||||
* | zap remaining rcsid. | espie | 2005-08-08 | 1 | -4/+1 |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | ansi + de-register | pat | 2005-03-30 | 1 | -11/+6 |
| | | | | ok otto deraadt | ||||
* | Remove the advertising clause in the UCB license which Berkeley | millert | 2003-06-02 | 1 | -6/+2 |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Use int32_t, not long since this deals with 32bit quantities. | millert | 2003-02-28 | 1 | -20/+20 |
| | | | | Inspired by a change in NetBSD and reported by Jan Johansson. | ||||
* | In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead. | millert | 2002-12-06 | 1 | -10/+27 |
| | | | | | We don't want to use the sysctl() by default since we are reading more than just a few bytes of entropy when setting up the state. | ||||
* | Fix the leak for real (that's what I get for hacking when i can't sleep). | millert | 2000-04-04 | 1 | -5/+7 |
| | |||||
* | Fix an fd leak if the read from /dev/arandom fails. Pointed out by | millert | 2000-04-04 | 1 | -5/+5 |
| | | | | Markus Friedl. | ||||
* | Add srandomdev() from FreeBSD for use by sendmail and others. | millert | 2000-04-03 | 1 | -1/+46 |
| | |||||
* | More XPG4.2 -- | millert | 1998-02-07 | 1 | -9/+5 |
| | | | | | setstate takes a const parameter don't ever spew to stderr, just return NULL | ||||
* | size_t n in initstate(); XPG | deraadt | 1998-02-06 | 1 | -2/+2 |
| | |||||
* | Remove dead code | tholo | 1996-09-15 | 1 | -3/+2 |
| | | | | | | Remove unused variables Silence some warnings lint(1) is your friend | ||||
* | Fix RCS ids | tholo | 1996-08-19 | 1 | -2/+1 |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | Substantially improve random number generation by using the largest prime | tholo | 1996-03-30 | 1 | -9/+21 |
| | | | | | that fits inside 32 bits as the denominator; take care not to overflow. Regenerate initial seed after replacing the generator | ||||
* | initial import of NetBSD tree | deraadt | 1995-10-18 | 1 | -0/+364 |