Skip to content

Commit 8f64d1c

Browse files
removed rng
1 parent 8348b8c commit 8f64d1c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/machine/system_calls.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7643,16 +7643,16 @@ impl Machine {
76437643
let arg = self.machine_st.registers[1];
76447644
let mut bytes: [u8; 1] = [0];
76457645

7646-
match rng().fill(&mut bytes) {
7647-
Ok(()) => {}
7648-
Err(_) => {
7646+
//match rng().fill(&mut bytes) {
7647+
// Ok(()) => {}
7648+
// Err(_) => {
76497649
// the error payload here is of type 'Unspecified',
76507650
// which contains no information whatsoever. So, for now,
76517651
// just fail.
76527652
self.machine_st.fail = true;
76537653
return;
7654-
}
7655-
}
7654+
// }
7655+
//}
76567656

76577657
let byte = Fixnum::build_with(bytes[0]);
76587658
self.machine_st.unify_fixnum(byte, arg);
@@ -9243,7 +9243,7 @@ fn rng() -> &'static dyn SecureRandom {
92439243
static ref RANDOM: SystemRandom = SystemRandom::new();
92449244
}
92459245

9246-
//RANDOM.deref() // TODO
9246+
RANDOM.deref()
92479247
}
92489248

92499249
struct MyKey<T: core::fmt::Debug + PartialEq>(T);

0 commit comments

Comments
 (0)