Bug #979: Kernel#srand documentation is misleading
http://redmine.ruby-lang.org/issues/show/979

Author: Federico Builes
Status: Open, Priority: Normal

According to the docs: "Seeds the pseudorandom number generator to the value of number.to_i.abs". But number.abs is never called:

    $ ./ruby -v -e "srand(-3); p srand"
    ruby 1.9.1 (2008-12-23 patchlevel-5000 trunk 20924) [i386-darwin9.5.0]
    -3


----------------------------------------
http://redmine.ruby-lang.org