Closed frolosofsky closed 5 years ago
What was the problem with Rand
?
What was the problem with Rand?
Rand<bool>()
always returned false
as underlying calling GetRand(1)
returns 0, because its argument is exclusive upper bound for random number.
We've noticed that finalization state storage aggressively consumes disk space that leads to the out-of-disk condition. This commit fixes that by deleting old states from disk the same way as we trim repository in memory.
Besides that:
Rand<bool>
from finalizationstate_utils.cpp;