made cs_rand (rand.c/h) more accepting