mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Update dist files; Also parse name and source mapping sections in lib/parse
This commit is contained in:
@ -2047,7 +2047,9 @@ export namespace NativeMathf {
|
||||
}
|
||||
|
||||
export function random(): f32 {
|
||||
return <f32>NativeMath.random();
|
||||
var f: f32; // FIXME: demoting from f64 to f32 might yield 1.0f
|
||||
do f = <f32>NativeMath.random(); while (f == 1.0);
|
||||
return f;
|
||||
}
|
||||
|
||||
export function round(x: f32): f32 { // see: musl/src/math/roundf.c
|
||||
|
Reference in New Issue
Block a user