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 6c5ff5b commit 9b06140Copy full SHA for 9b06140
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