mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Merge pull request #824 from GrayJack/rnd-double-capi
Expose `janet_rng_double` to the C API
This commit is contained in:
commit
fbe067823e
@ -1539,6 +1539,7 @@ JANET_API JanetRNG *janet_default_rng(void);
|
|||||||
JANET_API void janet_rng_seed(JanetRNG *rng, uint32_t seed);
|
JANET_API void janet_rng_seed(JanetRNG *rng, uint32_t seed);
|
||||||
JANET_API void janet_rng_longseed(JanetRNG *rng, const uint8_t *bytes, int32_t len);
|
JANET_API void janet_rng_longseed(JanetRNG *rng, const uint8_t *bytes, int32_t len);
|
||||||
JANET_API uint32_t janet_rng_u32(JanetRNG *rng);
|
JANET_API uint32_t janet_rng_u32(JanetRNG *rng);
|
||||||
|
JANET_API double janet_rng_double(JanetRNG *rng);
|
||||||
|
|
||||||
/* Array functions */
|
/* Array functions */
|
||||||
JANET_API JanetArray *janet_array(int32_t capacity);
|
JANET_API JanetArray *janet_array(int32_t capacity);
|
||||||
|
Loading…
Reference in New Issue
Block a user