random: use BasicByte concept in randbytes

pull/29625/head
Pieter Wuille 5 months ago
parent 27cefc7fd6
commit 40dd86fc3b

@ -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);

Loading…
Cancel
Save