diff --git a/lib/src/fnc/rand.rs b/lib/src/fnc/rand.rs index ead9518d..936e73ed 100644 --- a/lib/src/fnc/rand.rs +++ b/lib/src/fnc/rand.rs @@ -139,8 +139,8 @@ pub fn time(_: &Runtime, mut args: Vec) -> Result { } } 0 => { - let i = rand::random::(); - Ok(Datetime::from(i).into()) + let i = rand::random::(); + Ok(Datetime::from(i as i64).into()) } _ => unreachable!(), }