[ovs-dev] [PATCH] random: Implement a decent random number generator.

Stephen Hemminger shemminger at vyatta.com
Thu Aug 12 02:05:35 UTC 2010


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.





More information about the dev mailing list