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:
Saleem Abdulrasool authored and GitHub committed 2021-01-22 09:28:25 +00:00
1 parent 8f4bfa5bc1
commit 85d00fea15
1 file changed
+1 -1
+1 -1
View File
@@ -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