random: write rand256() in function of fillrand()
This commit is contained in:
1 parent
0bd2bd1efb
commit
493a2e024e
1 file changed
+1
-2
+1
-2
@@ -661,9 +661,8 @@ void FastRandomContext::RandomSeed()
|
|||||||
|
|
||||||
uint256 FastRandomContext::rand256() noexcept
|
uint256 FastRandomContext::rand256() noexcept
|
||||||
{
|
{
|
||||||
if (requires_seed) RandomSeed();
|
|
||||||
uint256 ret;
|
uint256 ret;
|
||||||
rng.Keystream(MakeWritableByteSpan(ret));
|
fillrand(MakeWritableByteSpan(ret));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user