[IdentCheck] Use hashes rather than random.randint