From 166803a2a5ae2670d23b069f86f1aa8090f4bb14 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Fri, 27 Oct 2023 00:18:41 +0200 Subject: [PATCH] Rename rand to rand_f64 --- core/math/rand/system_js.odin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/math/rand/system_js.odin b/core/math/rand/system_js.odin index 11e1385a2..14949000e 100644 --- a/core/math/rand/system_js.odin +++ b/core/math/rand/system_js.odin @@ -2,10 +2,11 @@ package rand foreign import "odin_env" foreign odin_env { - rand :: proc "contextless" () -> f64 --- + @(link_name = "rand") + rand_f64 :: proc "contextless" () -> f64 --- } @(require_results) _system_random :: proc() -> u64 { - return u64(rand() * 0x1fffffffffffff) + return u64(rand_f64() * 0x1fffffffffffff) }