https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112012-04-19T09:35:35ZRuby Issue Tracking SystemRuby master - Bug #6313: [rdoc] clarify that srand(number) is not default 0https://redmine.ruby-lang.org/issues/6313?journal_id=259932012-04-19T09:35:35Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r35393.<br>
Roger, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>random.c (random_init): Clarify that the default seed is<br>
Random.new_seed, not zero. Based on patch by Roger Pack.<br>
[ruby-trunk - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [rdoc] clarify that srand(number) is not default 0 (Closed)" href="https://redmine.ruby-lang.org/issues/6313">#6313</a>]
<ul>
<li>random.c (rb_f_srand): ditto.</li>
</ul>
</li>
</ul> Ruby master - Bug #6313: [rdoc] clarify that srand(number) is not default 0https://redmine.ruby-lang.org/issues/6313?journal_id=259942012-04-19T09:36:14Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>Both Random.new and srand call Random.new_seed so I updated the documentation of each based on your patch.</p>