Ticket #923 (new bug)
Make RNG algorithm used by rand dynop pluggable
| Reported by: | japhb | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | core | Version: | 1.4.0 |
| Severity: | low | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
Parrot's current PRNG is an old-style LCG: decent speed, but relatively poor randomness characteristics. According to http://en.wikipedia.org/wiki/Mersenne_twister at least PHP, Python, and Ruby use the more advanced (but still not cryptographically secure) Mersenne Twister in their standard libraries. Users from those languages will expect the higher-quality PRNG, so we should do at least as well -- either by switching to a free Mersenne Twister implementation, or by choosing an even more advanced algorithm instead.
Change History
Note: See
TracTickets for help on using
tickets.
