Skip to content

Commit

Permalink
fix: btc witnesser test failing sometimes (#4353)
Browse files Browse the repository at this point in the history
fix: btc witnesser test rng
  • Loading branch information
j4m1ef0rd authored Dec 15, 2023
1 parent 6ac9885 commit 69d642e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/witness/btc/btc_deposits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ pub mod tests {
use sp_runtime::AccountId32;

pub fn fake_transaction(tx_outs: Vec<VerboseTxOut>, fee: Option<Amount>) -> VerboseTransaction {
let random_number: u8 = rand::thread_rng().gen();
let txid = Txid::from_byte_array([random_number; 32]);
let random_bytes: [u8; 32] = rand::thread_rng().gen();
let txid = Txid::from_byte_array(random_bytes);
VerboseTransaction {
txid,
version: Version::from_consensus(2),
Expand Down

0 comments on commit 69d642e

Please sign in to comment.