Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prng quality




On Jan 28, 2005, at 17:24, Christopher D. Lewis wrote:

Do any of my users have an idea how to gauge the quality of random numbers generated by the prng? There's an article addressing sppofing attacks based on guessing TCP sequence numbers that suggests that after MacOS X gained a /dev/random the sequence numbers became effectively random, but indicates the randomness involves 31 bits of randomness to the other BSD operating systems' 32 bits. See <http://lcamtuf.coredump.cx/newtcp/>. While the 32nd bit may not make a big difference here, I was curious about its impact on generating crytpographic-quality random data and the potential limits of the randomness in Darwin's /dev/random.

Any thoughts on how to measure the randomness, and the tests one might use to gauge the impact on applications where the quality of the randomness is of critical importance?

Knuth's V2 is one of the best discussions of randomness and testing for it that I know of. Two that are spoken of highly are the Chi-square and the Spectral tests. Perusing Knuth is a good start, to help understand what randomness is, and how you might measure it. Randomness is not a simple thing, though.


I don't know of any implementations, but perhaps Google can help.

Regards,

Justin

--
/~\ The ASCII           Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
 X  Help cure HTML Email
/ \

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwinos-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwinos-users/email@hidden

This email sent to email@hidden
References: 
 >prng quality (From: "Christopher D. Lewis" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.