Fix for seed 0 always returning 0