#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 |
--------------------+-------------------------------------------------------
Changes (by coke):
* owner: => allison
Comment:
runtime/parrot/library/Math/Random/mt19937ar.pir doesn't appear to
actually be random, just psuedorandom.
We have some internal C level functions for randomness in src/utils.c.
I think we need an architectural decision as to how we want to get our
random on.
Some options:
- Keep the singleton Random (no change, reject ticket)
- non-singleton Random
- opcode wrapping the C functions.
- PIR library (probably wrapping the C functions).
- method (class or instance) on (e.g.) the Float PMC.
Let's actually decide what we want before ripping out the Random PMC.
I vote we delay removal of this PMC until after 1.0
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/189#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets