summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-04 16:54:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-04 16:54:10 +0000
commitaefda3277c0168dce1ac67d9e3a41ccff1dfb1d9 (patch)
tree2c3abdfded669624703fa71ca16252a9d69f4313
parent0b30a4123b5233459213652bf102b082236d8732 (diff)
downloadruby-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index d823d9c49..8100a1e05 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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--) {