remember to use the generator

This commit is contained in:
Azoy
2018-11-04 23:24:54 -06:00
parent 7af435c22a
commit 68a2a2ca3d
2 changed files with 2 additions and 2 deletions

View File

@@ -449,7 +449,7 @@ extension MutableCollection where Self : RandomAccessCollection {
var amount = count
var currentIndex = startIndex
while amount > 1 {
let random = Int.random(in: 0 ..< amount)
let random = Int.random(in: 0 ..< amount, using: &generator)
amount -= 1
swapAt(
currentIndex,