mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Allow FastRandomContext::randbytes for all byte types
This commit is contained in:
@@ -211,7 +211,8 @@ public:
|
||||
}
|
||||
|
||||
/** Generate random bytes. */
|
||||
std::vector<unsigned char> randbytes(size_t len);
|
||||
template <typename B = unsigned char>
|
||||
std::vector<B> randbytes(size_t len);
|
||||
|
||||
/** Fill a byte Span with random bytes. */
|
||||
void fillrand(Span<std::byte> output);
|
||||
|
||||
Reference in New Issue
Block a user