diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-04 16:54:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-04 16:54:10 +0000 |
commit | c600bad492841475b9a18e80f902286290e201e4 (patch) | |
tree | 2c3abdfded669624703fa71ca16252a9d69f4313 | |
parent | febbeb8e6439a99598534705b8119edb047faaac (diff) |
* bignum.c (rb_big_rand): should return positive random number.
[ruby-dev:25401]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | bignum.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2010,7 +2010,6 @@ rb_big_rand(max, rand_buf) return rb_float_new(rand_buf[0]); } v = bignew(len,1); - RBIGNUM(v)->sign = RBIGNUM(max)->sign; len--; BDIGITS(v)[len] = BDIGITS(max)[len] * rand_buf[len]; while (len--) { |