mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
random: write rand256() in function of fillrand()
This commit is contained in:
parent
0bd2bd1efb
commit
493a2e024e
1 changed files with 1 additions and 2 deletions
|
|
@ -661,9 +661,8 @@ void FastRandomContext::RandomSeed()
|
|||
|
||||
uint256 FastRandomContext::rand256() noexcept
|
||||
{
|
||||
if (requires_seed) RandomSeed();
|
||||
uint256 ret;
|
||||
rng.Keystream(MakeWritableByteSpan(ret));
|
||||
fillrand(MakeWritableByteSpan(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue