Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
random.c File Reference
#include "mruby.h"
#include "mruby/variable.h"
#include "mruby/data.h"
#include "mt19937ar.h"
#include <time.h>
Include dependency graph for random.c:

Go to the source code of this file.

Macros

#define GLOBAL_RAND_SEED_KEY   "$mrb_g_rand_seed"
#define GLOBAL_RAND_SEED_KEY_CSTR_LEN   16
#define INSTANCE_RAND_SEED_KEY   "$mrb_i_rand_seed"
#define INSTANCE_RAND_SEED_KEY_CSTR_LEN   16
#define MT_STATE_KEY   "$mrb_i_mt_state"
#define MT_STATE_KEY_CSTR_LEN   15

Functions

void mrb_mruby_random_gem_init (mrb_state *mrb)
void mrb_mruby_random_gem_final (mrb_state *mrb)

Macro Definition Documentation

#define GLOBAL_RAND_SEED_KEY   "$mrb_g_rand_seed"

Definition at line 14 of file random.c.

#define GLOBAL_RAND_SEED_KEY_CSTR_LEN   16

Definition at line 15 of file random.c.

#define INSTANCE_RAND_SEED_KEY   "$mrb_i_rand_seed"

Definition at line 17 of file random.c.

#define INSTANCE_RAND_SEED_KEY_CSTR_LEN   16

Definition at line 18 of file random.c.

#define MT_STATE_KEY   "$mrb_i_mt_state"

Definition at line 20 of file random.c.

#define MT_STATE_KEY_CSTR_LEN   15

Definition at line 21 of file random.c.

Function Documentation

void mrb_mruby_random_gem_final ( mrb_state mrb)

Definition at line 226 of file random.c.

void mrb_mruby_random_gem_init ( mrb_state mrb)

Definition at line 210 of file random.c.

Here is the call graph for this function: