Skip to content

Commit 63873e3

Browse files
committed
Box StdRng
1 parent c7bb84f commit 63873e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/stdlib/random.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ mod _random {
1717

1818
#[derive(Debug)]
1919
enum PyRng {
20-
Std(StdRng),
20+
Std(Box<StdRng>),
2121
MT(Box<mt19937::MT19937>),
2222
}
2323

2424
impl Default for PyRng {
2525
fn default() -> Self {
26-
PyRng::Std(StdRng::from_entropy())
26+
PyRng::Std(Box::new(StdRng::from_entropy()))
2727
}
2828
}
2929

0 commit comments

Comments
 (0)