mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
remember to use the generator
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user