mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
fd8a1c725b
commit
a43852a3a4
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed May 26 20:19:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* random.c (random_rand): add the result of random to the
|
||||
beginning of range, not the opposite. [ruby-dev:41415]
|
||||
|
||||
Wed May 26 19:55:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* file.c (file_expand_path): revert a part of r22392. it's commit miss.
|
||||
|
@ -10,8 +15,7 @@ Wed May 26 18:40:23 2010 Masaya Tarui <tarui@ruby-lang.org>
|
|||
Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* random.c (random_rand): subtraction method of non-numeric can
|
||||
return Float, and add the result of random to the beginning of
|
||||
range, not the opposite. [ruby-dev:41410]
|
||||
return Float. [ruby-dev:41410]
|
||||
|
||||
Wed May 26 11:50:09 2010 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
|
|
2
random.c
2
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue