fix use of deprecated rand API
This commit is contained in:
parent
f034a15441
commit
2a519a459c
1 changed files with 1 additions and 1 deletions
|
|
@ -120,6 +120,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
|
|||
let this = self.eval_context_ref();
|
||||
// Return one side non-deterministically.
|
||||
let mut rand = this.machine.rng.borrow_mut();
|
||||
if rand.gen() { a } else { b }
|
||||
if rand.random() { a } else { b }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue