From f0fb5371a1ed72128f7bfd824be5de7ed701dc65 Mon Sep 17 00:00:00 2001 From: Bedohswe <> Date: Thu, 8 Feb 2024 23:45:03 +0500 Subject: [PATCH] Allow _unix_random on not Unix systems. --- src/execute.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/execute.rs b/src/execute.rs index 25dc1ee..76a2ce8 100644 --- a/src/execute.rs +++ b/src/execute.rs @@ -132,6 +132,9 @@ pub fn execute(stack: &mut Stack, mut origin_stack: Option<&mut Stack>, mod_name #[cfg(target_family = "unix")] "_unix_random" => instructions::_unix_random::_unix_random(&mut stack.memory), + #[cfg(not(target_family = "unix"))] + "_unix_random" => instructions::random::random(&mut stack.memory), + // Labast-specific "random" => instructions::random::random(&mut stack.memory), @@ -141,4 +144,4 @@ pub fn execute(stack: &mut Stack, mut origin_stack: Option<&mut Stack>, mod_name } } } -} \ No newline at end of file +} -- 2.39.5