mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 00:40:26 +00:00
Fix error
This commit is contained in:
parent
1a3c8692e6
commit
c80a3c1401
@ -141,7 +141,7 @@ JANET_CORE_FN(cfun_rng_make,
|
|||||||
|
|
||||||
JANET_CORE_FN(cfun_rng_uniform,
|
JANET_CORE_FN(cfun_rng_uniform,
|
||||||
"(math/rng-uniform rng)",
|
"(math/rng-uniform rng)",
|
||||||
"Extract a random integer in the range [0, 1) from the RNG."
|
"Extract a random number in the range [0, 1) from the RNG."
|
||||||
) {
|
) {
|
||||||
janet_fixarity(argc, 1);
|
janet_fixarity(argc, 1);
|
||||||
JanetRNG *rng = janet_getabstract(argv, 0, &janet_rng_type);
|
JanetRNG *rng = janet_getabstract(argv, 0, &janet_rng_type);
|
||||||
|
Loading…
Reference in New Issue
Block a user