We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f034a15 commit 2a519a4Copy full SHA for 2a519a4
src/tools/miri/src/operator.rs
@@ -120,6 +120,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
120
let this = self.eval_context_ref();
121
// Return one side non-deterministically.
122
let mut rand = this.machine.rng.borrow_mut();
123
- if rand.gen() { a } else { b }
+ if rand.random() { a } else { b }
124
}
125
0 commit comments