mirror of
https://github.com/apple/swift-crypto
synced 2026-11-28 05:04:21 +00:00
Tests: add Windows into the RNG path (#61)
This adds Windows to the SystemNumberGenerator condition as well, which is needed to get the tests to build on Windows.
This commit is contained in:
1 parent
8f4bfa5bc1
commit
85d00fea15
1 file changed
+1
-1
@@ -49,7 +49,7 @@ class DERTests: XCTestCase {
|
||||
}
|
||||
|
||||
func randomBytes(count: Int) -> [UInt8] {
|
||||
#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) || os(Linux) || os(Android)
|
||||
#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) || os(Linux) || os(Android) || os(Windows)
|
||||
var rng = SystemRandomNumberGenerator()
|
||||
return (0..<count).map { _ in rng.next() }
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user