random: use BasicByte concept in randbytes

This commit is contained in:
Pieter Wuille committed 2024-07-01 10:26:46 -04:00
1 parent 27cefc7fd6
commit 40dd86fc3b
1 file changed
+1 -1
+1 -1
View File
@@ -212,7 +212,7 @@ public:
}
/** Generate random bytes. */
template <typename B = unsigned char>
template <BasicByte B = unsigned char>
std::vector<B> randbytes(size_t len) noexcept
{
std::vector<B> ret(len);