replaced random_number() with random_hex()