diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-03-16 19:47:44 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-03-16 19:47:44 +0000 |
commit | 184652f0aac51db18e318953058474a7ac4493b6 (patch) | |
tree | 6e7242d79cb5d0773cd151043408f25fec5d6fb9 /lib/libc/arch/sparc64/net | |
parent | 75714c460fcad691f65aac83a88aa5e47478871f (diff) |
diff from djm@ committed at his request:
introduce two new APIs for requesting strong random numbers:
arc4random_buf() - fill an arbitrary memory range with random numbers
arc4random_uniform() - return a uniformly distributed random number
below
a specified upper bound, avoiding the bias that comes from a naive
"arc4random() % upper_bound" construction.
these mirror similarly-named functions in the kernel;
lots of discussion deraadt@ mcbride@
Diffstat (limited to 'lib/libc/arch/sparc64/net')
0 files changed, 0 insertions, 0 deletions