We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c0afb commit 7b6c5bcCopy full SHA for 7b6c5bc
Sources/WebSocketKit/WebSocket.swift
@@ -186,7 +186,9 @@ public final class WebSocket {
186
func makeMaskKey() -> WebSocketMaskingKey? {
187
switch type {
188
case .client:
189
- return WebSocketMaskingKey.random()
+ /// See https://github.com/apple/swift/issues/66099
190
+ var generator = SystemRandomNumberGenerator()
191
+ return WebSocketMaskingKey.random(using: &generator)
192
case .server:
193
return nil
194
}
0 commit comments