Re: CVS commit: src/sys/netinet

David Laight <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs,gmane.os.netbsd.devel.crypto
Message-ID <[email protected]>
> 
> I'm not entirely sure what the right way to do this is, though.

The code that itojun has just dumped into several different source
files does attempt to do this (but I think can be broken with a small
number of values from the sequence).

OTOH what is actually needed is some generic library code that can
generate different types of 'random' numbers depending on what it
is asked to do. Eg
- repeateable sequences with reasonable statistical randomness
- sequences where values are guaranteed not to be reproduced
- random values

The actual algorithms being absent from the ABI, they might even
be kernel options.

	David

-- 
David Laight: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.