mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Rename rand to rand_f64
This commit is contained in:
@@ -2,10 +2,11 @@ package rand
|
|||||||
|
|
||||||
foreign import "odin_env"
|
foreign import "odin_env"
|
||||||
foreign odin_env {
|
foreign odin_env {
|
||||||
rand :: proc "contextless" () -> f64 ---
|
@(link_name = "rand")
|
||||||
|
rand_f64 :: proc "contextless" () -> f64 ---
|
||||||
}
|
}
|
||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
_system_random :: proc() -> u64 {
|
_system_random :: proc() -> u64 {
|
||||||
return u64(rand() * 0x1fffffffffffff)
|
return u64(rand_f64() * 0x1fffffffffffff)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user