Timings for random

Gary E. Miller gem at rellim.com
Sat Jan 28 22:46:01 UTC 2017


Yo Kurt!

On Sat, 28 Jan 2017 23:18:01 +0100
Kurt Roeckx <kurt at roeckx.be> wrote:

> > rand() and RAND_pseudo_rand() are not random, just psuedo random,
> > thus not for NTP.  
> 
> I have no idea what you're using random numbers for, but if
> unpredicable is what you want rand() is probably not what you
> want.

NTP uses random numbers for three reasons:

1. To generate crypto keys: ntpkeygen

2. To add to the LSB's of time stamps as a nonce

3. To use as fuzz around very small time measurements.

The dirst is Python, the later two are C code that will be using only
OpenSSL soon.

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/4000d314/attachment.bin>


More information about the devel mailing list