in reply to Re^4: Is rand() really that slow or am I just using it wrong?
in thread Is rand() really that slow or am I just using it wrong?

https://rt.perl.org/rt3//Public/Bug/Display.html?id=115928
  • Comment on Re^5: Is rand() really that slow or am I just using it wrong?

Replies are listed 'Best First'.
Re^6: Is rand() really that slow or am I just using it wrong?
by BrowserUk (Patriarch) on Aug 11, 2013 at 05:19 UTC

    Interesting.

    I'd hope that if P5P decides to implement a single, consistent PRNG, that they opt for a fast, non-cryptogrpahic, well-known and tested, and 64-bit (not 48; at least on 64-bit versions) such as:

    And not just make one up.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.