fixed booboo in rng.c