Cleanup some RNG creation, usage and tests

Signed-off-by: Gary Pamparà <gpampara@gmail.com>