Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Pseudo random
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="wyhaines" data-source="post: 4644931"><p>Ruby uses a mersene twister for its prng. This provides a high quality source of pseudo random numbers for noncryptographic purposes. If you need random numbers for crypto or you need independent prng streams then you need a different source.</p><p></p><p>Kirk Haines</p><p>Sent from my Verizon Wireless BlackBerry</p><p></p><p>-----Original Message-----</p><p>From: Kless <jonas.esp@googlemail.com></p><p></p><p>Date: Sun, 26 Jul 2009 06:55:12</p><p>To: ruby-talk ML<ruby-talk@ruby-lang.org></p><p>Subject: Pseudo random</p><p></p><p></p><p>Is safe to use Kernel#rand to get pseudo-random integers?</p></blockquote><p></p>
[QUOTE="wyhaines, post: 4644931"] Ruby uses a mersene twister for its prng. This provides a high quality source of pseudo random numbers for noncryptographic purposes. If you need random numbers for crypto or you need independent prng streams then you need a different source. Kirk Haines Sent from my Verizon Wireless BlackBerry -----Original Message----- From: Kless <jonas.esp@googlemail.com> Date: Sun, 26 Jul 2009 06:55:12 To: ruby-talk ML<ruby-talk@ruby-lang.org> Subject: Pseudo random Is safe to use Kernel#rand to get pseudo-random integers? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Pseudo random
Top