Cleaned up rand_from_seed