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 | a88589c7d18c5004bb8b9f8191cb0d3aa3e5a705 (patch) | |
tree | 795eb1b9f5e6386f1d78282c09c3db52a9948f3c /ChangeLog | |
parent | 1dabc36b8f3545611b00c7161e535246951c5866 (diff) |
* random.c (limited_rand): expands to long before shift so that
the result does not overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Jul 11 02:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * random.c (limited_rand): expands to long before shift so tha + the result does not overflow. + Sat Jul 11 00:16:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * random.c (rand_init): got rid of buffer overflow. |