summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 11:19:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 11:19:30 +0000
commitb40110b7f225864b6e43d06d8fbd8d932994fb8e (patch)
treed8b985ff6a0867e6b96938b5d5d972c4e15f91e8 /random.c
parent868eef7873f02e3e88f8fa5f94e076da7f2d7bd1 (diff)
* random.c (random_rand): add the result of random to the
beginning of range, not the opposite. [ruby-dev:41415] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index b6ed02992f..2da40b2bb6 100644
--- a/random.c
+++ b/random.c
@@ -1085,7 +1085,7 @@ random_rand(int argc, VALUE *argv, VALUE obj)
}
}
default:
- return rb_funcall2(v, id_plus, 1, &beg);
+ return rb_funcall2(beg, id_plus, 1, &v);
}
}