summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/bcmp.c
diff options
context:
space:
mode:
authorotto <>2008-03-16 19:47:43 +0000
committerotto <>2008-03-16 19:47:43 +0000
commite045e819cf6c3f1795515c3f3f6d661b69e1f66b (patch)
treef4249dd0935bf7960031a9fa944836948c49cad1 /src/lib/libc/string/bcmp.c
parenta8537602a33c58670952fc29ef3a95e13d478746 (diff)
downloadopenbsd-e045e819cf6c3f1795515c3f3f6d661b69e1f66b.tar.gz
openbsd-e045e819cf6c3f1795515c3f3f6d661b69e1f66b.tar.bz2
openbsd-e045e819cf6c3f1795515c3f3f6d661b69e1f66b.zip
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 'src/lib/libc/string/bcmp.c')
0 files changed, 0 insertions, 0 deletions