Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
Signed-off-by: Yuuki Takano <[email protected]>
  • Loading branch information
ytakano committed Dec 25, 2024
1 parent c4d0535 commit 5870044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/async_await/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn random() -> u64 {
}

let result = x.wrapping_mul(0x2545_f491_4f6c_dd1d) as u64;
RNG.store(result, Ordering::Relaxed);
RNG.store(result as usize, Ordering::Relaxed);

result
}

0 comments on commit 5870044

Please sign in to comment.