summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-01 04:11:43 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-01 04:11:43 +0000
commit36941b8465e3185769deceee7280b592f874ffa0 (patch)
treef9f5fa8b36409924525668f6f55a885d57ebb199 /bignum.c
parente0f041a27969fd5dd8b9c8010d55be70a175c5d3 (diff)
downloadruby-36941b8465e3185769deceee7280b592f874ffa0.tar.gz
* bignum.c (rb_big_rand): removed. [ruby-dev:25405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/bignum.c b/bignum.c
index 33ceab618c..a01c45c7b8 100644
--- a/bignum.c
+++ b/bignum.c
@@ -1934,25 +1934,6 @@ rb_big_abs(VALUE x)
return x;
}
-VALUE
-rb_big_rand(VALUE max, double *rand_buf)
-{
- VALUE v;
- long len = RBIGNUM(max)->len;
-
- if (BIGZEROP(max)) {
- return rb_float_new(rand_buf[0]);
- }
- v = bignew(len,1);
- len--;
- BDIGITS(v)[len] = BDIGITS(max)[len] * rand_buf[len];
- while (len--) {
- BDIGITS(v)[len] = ((BDIGIT)~0) * rand_buf[len];
- }
-
- return v;
-}
-
/*
* call-seq:
* big.size -> integer