[ovs-dev] [PATCH] random: Implement a decent random number generator.
blp at nicira.com
Thu Aug 12 18:13:31 UTC 2010
On Wed, Aug 11, 2010 at 10:05:35PM -0400, Stephen Hemminger wrote:
> On Thu, 5 Aug 2010 10:23:40 -0700
> Ben Pfaff <blp at nicira.com> wrote:
> > Until now this library has based its random number upon those returned
> > by libc's rand() function. This has always bugged me--it is not a good
> > solution since rand() varies in quality so much. This commit changes
> > the random library to use a simple but high-quality PRNG.
> Come on use something better than that. Why not read /dev/urandom for seed.
It's not supposed to be used for anything that requires cryptographic
That said, we already have code to read /dev/urandom, so we might as
well use it. It couldn't hurt.
I sent out a patch series.
More information about the dev