mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
random: use BasicByte concept in randbytes
This commit is contained in:
parent
27cefc7fd6
commit
40dd86fc3b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue