Project

General

Profile

« Previous | Next » 

Revision e3efce6d

Added by nobu (Nobuyoshi Nakada) about 13 years ago

array.c: use rb_random_ulong_limited

  • array.c (rb_ary_sample): use rb_random_ulong_limited, since
    precision of long may be larger than double.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e