This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients dbagnall, rhettinger, sturlamolden, vstinner
Date 2011-08-29.03:17:21
SpamBayes Score 5.587153e-11
Marked as misclassified No
Message-id <1314587843.64.0.517986370152.issue12754@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Douglas.   Can you say what the cryptographic guarantees are for Chacha and Salsa (seeing a stream of randoms doesn't allow you to do deduce internal state, previous randoms, or future randoms)?  Is it suitably strong for gaming (dealing poker hands, lottery numbers, etc)?

I'm not sure I follow the notes on state size.  Is it 320 bits + 64 bits or is it 512 bits?  Also, I'm not sure that the smaller state is an advantage that users care about (unless they are pickling many instances of the prngs).

It's okay for jumpahead() to reappear in generators that support it, but   that method can't be a mandatory part of the Random API because it doesn't make sense for many PRNGs where a jumpahead function isn't known.

With respect to the SIMD optimizations and longlong to double operations, I'm curious to take a look at how it was done yet wonder if there is a provable, portable implementation and also wonder if it is worth it (the speed of generating a random() tends to be dwarfed by surrounding code that actually uses the result -- allocating the python object, etc).
History
Date User Action Args
2011-08-29 03:17:23rhettingersetrecipients: + rhettinger, dbagnall, vstinner, sturlamolden
2011-08-29 03:17:23rhettingersetmessageid: <1314587843.64.0.517986370152.issue12754@psf.upfronthosting.co.za>
2011-08-29 03:17:22rhettingerlinkissue12754 messages
2011-08-29 03:17:21rhettingercreate