Skip to content

Commit 493a2e0

Browse files
committed
random: write rand256() in function of fillrand()
1 parent 0bd2bd1 commit 493a2e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/random.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,8 @@ void FastRandomContext::RandomSeed()
661661

662662
uint256 FastRandomContext::rand256() noexcept
663663
{
664-
if (requires_seed) RandomSeed();
665664
uint256 ret;
666-
rng.Keystream(MakeWritableByteSpan(ret));
665+
fillrand(MakeWritableByteSpan(ret));
667666
return ret;
668667
}
669668

0 commit comments

Comments
 (0)