summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-09 09:01:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-09 09:01:40 +0000
commite3efce6df1aa691e17c59f442b35b4fd129d3a13 (patch)
treee1c5aed7b54721ba5a8a114bec1af03870545203 /NEWS
parent7f8e5584649b1bba6d30d78c661a1b1eca28340e (diff)
array.c: use rb_random_ulong_limited
* array.c (rb_ary_sample): use rb_random_ulong_limited, since precision of long may be larger than double. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d96c5d8849..0e4508e27d 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,11 @@ with all sufficient information, see the ChangeLog file.
* builtin classes
+ * Array
+ * incompatible changes:
+ * random parameter of Array#shuffle! and Array#sample now
+ will be called with one argument, maximum value.
+
* Enumerable
* added method:
* added Enumerable#lazy method for lazy enumeration.