pub(crate) fn random_tx(tx_number: u64) -> Transaction {
    let mut tx = create_l2_transaction(10, 100);
    // Set the `tx_number` as tx hash so if transaction causes problems,
    // it'll be easier to understand which one.
    tx.set_input(H256::random().0.to_vec(), H256::from_low_u64_be(tx_number));
    tx.into()
}
Creates a random transaction. Provided tx number would be used as a transaction hash,
so it's easier to understand which transaction caused test to fail.
core/node/state_keeper/src/testonly/test_batch_executor.rs