Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "duk_internal.h"
Go to the source code of this file.
Macros | |
#define | DUK__UPDATE_RND(rnd) |
#define | DUK__RND_BIT(rnd) ((rnd) >> 31) /* only use the highest bit */ |
Functions | |
DUK_INTERNAL duk_uint32_t | duk_util_tinyrandom_get_bits (duk_hthread *thr, duk_small_int_t n) |
DUK_INTERNAL duk_double_t | duk_util_tinyrandom_get_double (duk_hthread *thr) |
#define DUK__RND_BIT | ( | rnd | ) | ((rnd) >> 31) /* only use the highest bit */ |
Definition at line 16 of file duktape-1.5.2/src-separate/duk_util_tinyrandom.c.
Referenced by duk_util_tinyrandom_get_bits(), and duk_util_tinyrandom_get_double().
#define DUK__UPDATE_RND | ( | rnd | ) |
Definition at line 11 of file duktape-1.5.2/src-separate/duk_util_tinyrandom.c.
Referenced by duk_util_tinyrandom_get_bits(), and duk_util_tinyrandom_get_double().
DUK_INTERNAL duk_uint32_t duk_util_tinyrandom_get_bits | ( | duk_hthread * | thr, |
duk_small_int_t | n ) |
Definition at line 18 of file duktape-1.5.2/src-separate/duk_util_tinyrandom.c.
References DUK__RND_BIT, DUK__UPDATE_RND, duk_hthread::heap, and duk_heap::rnd_state.
DUK_INTERNAL duk_double_t duk_util_tinyrandom_get_double | ( | duk_hthread * | thr | ) |
Definition at line 36 of file duktape-1.5.2/src-separate/duk_util_tinyrandom.c.
References DUK__RND_BIT, DUK__UPDATE_RND, DUK_ASSERT, duk_hthread::heap, and duk_heap::rnd_state.