srandomdev() vs srandom() vs arc4random()

Kris Kennaway kris at obsecurity.org
Tue May 24 18:37:54 PDT 2005


On Tue, May 24, 2005 at 09:35:37PM -0400, Nicolas Blais wrote:
> > arc4random() should produce higher quality randomness, although
> > srandom() may be good enough for your needs.
> >
> > > Finally, is there is a way to check if the call srandomdev() exists on
> > > other OSes?
> >
> > Sure, compile a test app in your configure script :-)
> >
> > Kris
> 
> Thanks,
> I'm assuming arc4random() is also limited to *BSD?

I have no idea.  Try it and see.

Kris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050524/46de3ccc/attachment.bin


More information about the freebsd-questions mailing list