#189: deprecated: random PMC
--------------------+-------------------------------------------------------
Reporter: coke | Owner: allison
Type: todo | Status: new
Priority: normal | Milestone: 1.0
Component: none | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: all |
--------------------+-------------------------------------------------------
Comment(by fperrad):
Random PMC is a wrapper over C rand48 funtions (pseudo-random generator).
These functions could be rewrite in PIR, like mt19997 (Mersenne Twisted)
were.
mt19997 and rand48 have not the same properties. See
http://en.wikipedia.org/wiki/Mersenne_twister .
Parrot could have many different pseudo-random generator libraries
(written in PIR).
But Parrot needs a portable entropy source, because /dev/rnd is only
available on *nix.
Perl5 Doc gives as advice : srand (time ^ $$ ^ unpack "%L*", `ps axww |
gzip -f`);
Parrot could do better (and simpler).
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/189#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets