<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ class Array
     if size == 1
       return self[Kernel.rand(self.length)]
     else
-      random_candidates = self.clone
+      random_candidates = self.collect
       size = self.length if size &gt; self.length
       
       (0..(size - 1)).to_a.collect do
@@ -13,4 +13,4 @@ class Array
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/rand.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da1d1afc8cdd8bfe9713a9d04ad0d1fd5191d0a0</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Mango</name>
    <email>tsmango@gmail.com</email>
  </author>
  <url>http://github.com/tsmango/rand/commit/89b5c6517d118c56a4a6218a0c3da01eb9aaa6dd</url>
  <id>89b5c6517d118c56a4a6218a0c3da01eb9aaa6dd</id>
  <committed-date>2009-07-02T14:50:07-07:00</committed-date>
  <authored-date>2009-07-02T14:50:07-07:00</authored-date>
  <message>The array of values is now duplicated rather than cloned to protect against frozen arrays.</message>
  <tree>0d272688acdaacbe364c0a76c35ff8f12984a614</tree>
  <committer>
    <name>Thomas Mango</name>
    <email>tsmango@gmail.com</email>
  </committer>
</commit>
