Skip to content

Commit

Permalink
change random number generator success ordering to AcqRel
Browse files Browse the repository at this point in the history
  • Loading branch information
fereidani committed Dec 16, 2022
1 parent 2708e3c commit 329946c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn random() -> usize {
current,
// Linear congruential generator
current.wrapping_mul(1103515245).wrapping_add(12345),
Ordering::Release,
Ordering::AcqRel,
Ordering::Acquire,
) {
// Successfully updated current value to next random number, so current value is owned by this thread and valid to use
Expand Down

0 comments on commit 329946c

Please sign in to comment.