refactor: use getrandom

This commit is contained in:
JeanArhancet
2024-07-19 21:22:14 +02:00
parent 6a5d6847c0
commit a2d4d73ce5
4 changed files with 8 additions and 7 deletions

View File

@@ -357,9 +357,8 @@ pub fn translate_expr(
}
SingleRowFunc::Random => {
if args.is_some() {
anyhow::bail!("Parse error: random function withargumentst");
anyhow::bail!("Parse error: random function with arguments");
}
dbg!("random args", &args);
let regs = program.alloc_register();
program.emit_insn(Insn::Function {