Remove BigInteger dependency from Random
[WIP] nodestore refactor