[TEST] Add random function for transaction hashes.