summaryrefslogtreecommitdiff
path: root/bignum.c
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
commitc600bad492841475b9a18e80f902286290e201e4 (patch)
tree2c3abdfded669624703fa71ca16252a9d69f4313 /bignum.c
parentfebbeb8e6439a99598534705b8119edb047faaac (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
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index d823d9c..8100a1e 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--) {