diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-07 15:35:06 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-07 15:35:06 -0700 |
commit | 36117f59ec77784c9ef77801d7c1cbf03a4c4a8b (patch) | |
tree | 18a7c3f373c5d9ac11cce320045713550ce674fa /sys/libn/random.c | |
parent | 46da413cf7c9c995842a83cd54b02a17cd9c7289 (diff) |
wrap: elementary math functions for libmath
Diffstat (limited to 'sys/libn/random.c')
-rw-r--r-- | sys/libn/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libn/random.c b/sys/libn/random.c index 1e2c2d5..558641e 100644 --- a/sys/libn/random.c +++ b/sys/libn/random.c @@ -69,7 +69,7 @@ double rng·random() { uint64 r = xoshiro256ss(&RNG); - return (double)r / UINT64_MAX; + return (double)r / (double)UINT64_MAX; } /* Returns true or false on success of trial */ |