Re: repeatable random numbers in an object
Re: repeatable random numbers in an object
- Subject: Re: repeatable random numbers in an object
- From: Kyle Sluder <email@hidden>
- Date: Wed, 17 Jun 2009 10:05:28 -0700
On Wed, Jun 17, 2009 at 9:54 AM, Kirk Kerekes<email@hidden> wrote:
> <http://www-cs-faculty.stanford.edu/~knuth/programs/rng.c>
Not to knock on Don Knuth, but I wouldn't recommend using that code in
your app. There's a perfectly good RNG facility in the system as Mr.
George Warner pointed out, and Knuth's code is designed for a 32-bit
system. While it will work on OS X (because we use LP64), it will be
wrong on Win64 (which uses ILP64) and will cause problems if you
upcast to NSUInteger on OS X.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden