Actions
Bug #6313
closed[rdoc] clarify that srand(number) is not default 0
Description
Since srand(0) is not the default, attempt to clarify that.
Files
Updated by drbrain (Eric Hodel) about 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r35393.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- random.c (random_init): Clarify that the default seed is
Random.new_seed, not zero. Based on patch by Roger Pack.
[ruby-trunk - Bug #6313]- random.c (rb_f_srand): ditto.
Updated by drbrain (Eric Hodel) about 12 years ago
Both Random.new and srand call Random.new_seed so I updated the documentation of each based on your patch.
Actions
Like0
Like0Like0