Skip to content

Commit 79542a8

Browse files
committed
Tests: add Windows into the RNG path
This adds Windows to the SystemNumberGenerator condition as well, which is needed to get the tests to build on Windows.
1 parent 8f4bfa5 commit 79542a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CryptoTests/Encodings/DERTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class DERTests: XCTestCase {
4949
}
5050

5151
func randomBytes(count: Int) -> [UInt8] {
52-
#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) || os(Linux) || os(Android)
52+
#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) || os(Linux) || os(Android) || os(Windows)
5353
var rng = SystemRandomNumberGenerator()
5454
return (0..<count).map { _ in rng.next() }
5555
#else

0 commit comments

Comments
 (0)