backend: rely on Array#shuffle instead sort_by { rand }
commit0bffe57f784b40dc355c2eca82d1d7a8cab09093
authorEric Wong <normalperson@yhbt.net>
Tue, 1 Nov 2011 20:08:25 +0000 (1 20:08 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 1 Nov 2011 20:50:13 +0000 (1 20:50 +0000)
tree4fde86934f4ee863a972a1ee1c52a7f59801bac5
parent6897db699255ce1fbd31ffb304db357351f5509a
backend: rely on Array#shuffle instead sort_by { rand }

This is easier-to-read and more correct.  This is not available
in 1.8.6, but we already broke 1.8.6 compatibility with
String#bytesize.
lib/mogilefs/backend.rb