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 | aefda3277c0168dce1ac67d9e3a41ccff1dfb1d9 (patch) | |
| tree | 2c3abdfded669624703fa71ca16252a9d69f4313 | |
| parent | 0b30a4123b5233459213652bf102b082236d8732 (diff) | |
| download | ruby-aefda3277c0168dce1ac67d9e3a41ccff1dfb1d9.tar.gz ruby-aefda3277c0168dce1ac67d9e3a41ccff1dfb1d9.tar.xz ruby-aefda3277c0168dce1ac67d9e3a41ccff1dfb1d9.zip | |
* bignum.c (rb_big_rand): should return positive random number.
[ruby-dev:25401]
git-svn-id: http://svn.ruby-lang.org/repos/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--) { |
