Use a SeedableRng to generate random numbers

This commit is contained in:
Adrián Arroyo Calle
2023-09-20 21:54:14 +02:00
parent 9dc1c339ef
commit 7cf6e77f4d
3 changed files with 14 additions and 9 deletions

View File

@@ -246,6 +246,7 @@ impl Machine {
runtime,
#[cfg(feature = "ffi")]
foreign_function_table: Default::default(),
rng: StdRng::from_entropy(),
};
let mut lib_path = current_dir();