* 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
This commit is contained in:
nobu 2010-05-26 11:19:30 +00:00
parent fd8a1c725b
commit a43852a3a4
2 changed files with 7 additions and 3 deletions

View file

@ -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);
}
}