On Apr 14, 2009, at 12:56 PM, Jean-Daniel Dupas wrote:

reading /dev/random is currently the best way to generate random number on OS X.

http://lists.apple.com/archives/apple-cdsa/2009/Mar/msg00077.html

Yes, and those are *true* random numbers, since their source is physical rather than algorithmic, that is, the numbers are generated from random noise (thermal and electrical) read from physical devices.

For testing, though, it's always good to rely on a (good quality) *pseudo*-random generator, so that you can reliably generate the same sequences all the time.

Wagner
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to