diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 17:37:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 17:37:52 +0000 |
commit | d902a27aeabe00dffc72f94bd591db15f109226e (patch) | |
tree | 795eb1b9f5e6386f1d78282c09c3db52a9948f3c /numeric.c | |
parent | d85b7f16d054a84806e51bf134ca38bda694c667 (diff) | |
download | ruby-d902a27aeabe00dffc72f94bd591db15f109226e.tar.gz ruby-d902a27aeabe00dffc72f94bd591db15f109226e.tar.xz ruby-d902a27aeabe00dffc72f94bd591db15f109226e.zip |
* random.c (limited_rand): expands to long before shift so that
the result does not overflow.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
0 files changed, 0 insertions, 0 deletions