Raymond Hettinger <raymond.hettin...@gmail.com> added the comment: 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). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12754> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com