diff --git a/Sources/Crypto/Random/CryptoRandom.swift b/Sources/Crypto/Random/CryptoRandom.swift index 71ad0b3..bcd0e14 100644 --- a/Sources/Crypto/Random/CryptoRandom.swift +++ b/Sources/Crypto/Random/CryptoRandom.swift @@ -4,7 +4,7 @@ import Foundation import Random /// Uses OpenSSL `RAND_bytes` to generate random data. -public final class CryptoRandom: DataGenerator { +public struct CryptoRandom: DataGenerator { /// Creates a new `CryptoRandom`. public init() {} diff --git a/Sources/Random/OSRandom.swift b/Sources/Random/OSRandom.swift index 0a952e6..f87552e 100644 --- a/Sources/Random/OSRandom.swift +++ b/Sources/Random/OSRandom.swift @@ -3,7 +3,7 @@ import Foundation import COperatingSystem /// Uses the operating system's Random function uses `random` on Linux and `arc4random` on macOS. -public final class OSRandom: DataGenerator { +public struct OSRandom: DataGenerator { /// Create a new `OSRandom` public init() {}