From 85d00fea15736e711445cfb6f5ee83a85d98e0d3 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 22 Jan 2021 01:28:25 -0800 Subject: [PATCH] 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. --- Tests/CryptoTests/Encodings/DERTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CryptoTests/Encodings/DERTests.swift b/Tests/CryptoTests/Encodings/DERTests.swift index 2b2dafee..7b1db97a 100644 --- a/Tests/CryptoTests/Encodings/DERTests.swift +++ b/Tests/CryptoTests/Encodings/DERTests.swift @@ -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..