Skip to content

Commit e7dd233

Browse files
committed
Add conditional for RandomBytes.
Required for tests to build on OpenBSD.
1 parent 81cef4f commit e7dd233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CryptoBoringWrapper/Util/RandomBytes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension UnsafeMutableRawBufferPointer {
2020
return
2121
}
2222

23-
#if canImport(Darwin) || os(Linux) || os(Android) || os(Windows) || os(FreeBSD)
23+
#if canImport(Darwin) || os(Linux) || os(Android) || os(Windows) || os(FreeBSD) || os(OpenBSD)
2424
var rng = SystemRandomNumberGenerator()
2525
precondition(count <= self.count)
2626

0 commit comments

Comments
 (0)