switched rng stuff over to a smaller memory footprint implementation