Skip to content

Commit

Permalink
Fix unused generator parameter in Array.random(count:using:) (#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-tomlein committed Nov 9, 2022
1 parent 0eacdf3 commit a037bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/Utilities/Array+Random.swift
Expand Up @@ -21,7 +21,7 @@ extension Array where Element: FixedWidthInteger {
where T: RandomNumberGenerator
{
var array: [Element] = .init(repeating: 0, count: count)
(0..<count).forEach { array[$0] = Element.random() }
(0..<count).forEach { array[$0] = Element.random(using: &generator) }
return array
}
}
Expand Down

0 comments on commit a037bbf

Please sign in to comment.