summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-09 07:53:20 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-09 07:53:20 (GMT)
commitf5ad120b9798d58d20e67dc458a5f5005482a1d8 (patch)
tree76c1ec9d309a7cf8c88c8e22319d6e427ef9a4ff /random.c
parent837392b45260785a8ccc13aceba5be90e067a974 (diff)
* bignum.c (rb_absint_numwords): Renamed from rb_absint_size_in_word.
* internal.h (rb_absint_numwords): Follow the above change. * pack.c (pack_pack): Ditto. * random.c (rand_init): Ditto. (limited_big_rand): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random.c b/random.c
index 3241874..b664dbd 100644
--- a/random.c
+++ b/random.c
@@ -375,7 +375,7 @@ rand_init(struct MT *mt, VALUE vseed)
seed = rb_to_int(vseed);
- len = rb_absint_size_in_word(seed, 32, NULL);
+ len = rb_absint_numwords(seed, 32, NULL);
if (MT_MAX_STATE < len)
len = MT_MAX_STATE;
if (len > numberof(buf0))
@@ -750,7 +750,7 @@ limited_big_rand(struct MT *mt, VALUE limit)
VALUE vtmp;
VALUE val;
- len = rb_absint_size_in_word(limit, 32, NULL);
+ len = rb_absint_numwords(limit, 32, NULL);
tmp = ALLOCV_N(uint32_t, vtmp, len*2);
lim_array = tmp;
rnd_array = tmp + len;