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
commita43852a3a41a6f228e280afb2f64cd4daf25dec7 (patch)
treea34e45c6454ce11abcd71eb1ea1cc574c63c13eb /random.c
parentfd8a1c725b876b83d8a6b835b0113be0d83befc6 (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/trunk@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);
}
}