Timings for random
Gary E. Miller
gem at rellim.com
Sat Jan 28 20:48:34 UTC 2017
Yo Hal!
On Sat, 28 Jan 2017 12:39:02 -0800
Hal Murray <hmurray at megapathdsl.net> wrote:
> Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
> Stdlib: 1000000 calls to rand() took 0.021 microseconds each
> Sodium: 1000000 calls to randombytes_buf() took 0.367 microseconds
> each
> OpenSSL: 1000000 calls to RAND_pseudo_bytes() took 0.630
> microseconds each
rand() and RAND_pseudo_rand() are not random, just psuedo random, thus
not for NTP.
What about the OpenSSL RAND_bytes()?
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170128/2b093fda/attachment.bin>
More information about the devel
mailing list