1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1999-12-08 05:35:58 +00:00
parent 1d9aaa67f3
commit ea14c6e09a
7 changed files with 29 additions and 27 deletions

View file

@ -1262,7 +1262,7 @@ rb_big_rand(max, rand)
VALUE v;
long len;
len = RBIGNUM(v)->len;
len = RBIGNUM(max)->len;
v = bignew(len,1);
while (len--) {
BDIGITS(v)[len] = ((USHORT)~0) * rand;