mt_rand crypto safe byte strings and ints from a given range