|
Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "ruby/ruby.h"Go to the source code of this file.
Data Structures | |
| struct | rb_random_struct |
| struct | rb_random_interface_t |
Macros | |
| #define | RB_RANDOM_INTERFACE_DECLARE(prefix) |
| #define | RB_RANDOM_INTERFACE_DECLARE_WITH_REAL(prefix) |
| #define | RB_RANDOM_INTERFACE_DEFINE(prefix) |
| #define | RB_RANDOM_INTERFACE_DEFINE_WITH_REAL(prefix) |
| #define | RB_RANDOM_PARENT &rb_random_data_type |
| #define | RB_RANDOM_DATA_INIT_PARENT(random_data) rbimpl_random_data_init_parent(&random_data) |
Typedefs | |
| typedef struct rb_random_struct | rb_random_t |
| typedef void | rb_random_init_func(rb_random_t *, const uint32_t *, size_t) |
| typedef unsigned int | rb_random_get_int32_func(rb_random_t *) |
| typedef void | rb_random_get_bytes_func(rb_random_t *, void *, size_t) |
| typedef double | rb_random_get_real_func(rb_random_t *, int) |
| typedef const rb_data_type_t | rb_random_data_type_t |
Functions | |
| void | rb_random_mark (void *ptr) |
| void | rb_random_base_init (rb_random_t *rnd) |
| double | rb_int_pair_to_real (uint32_t a, uint32_t b, int excl) |
| void | rb_rand_bytes_int32 (rb_random_get_int32_func *, rb_random_t *, void *, size_t) |
Variables | |
| const rb_data_type_t | rb_random_data_type |
Definition in file random.h.
| #define RB_RANDOM_DATA_INIT_PARENT | ( | random_data | ) | rbimpl_random_data_init_parent(&random_data) |
| #define RB_RANDOM_INTERFACE_DECLARE | ( | prefix | ) |
| #define RB_RANDOM_INTERFACE_DECLARE_WITH_REAL | ( | prefix | ) |
| #define RB_RANDOM_INTERFACE_DEFINE | ( | prefix | ) |
| #define RB_RANDOM_PARENT &rb_random_data_type |
| typedef const rb_data_type_t rb_random_data_type_t |
| typedef void rb_random_get_bytes_func(rb_random_t *, void *, size_t) |
| typedef unsigned int rb_random_get_int32_func(rb_random_t *) |
| typedef double rb_random_get_real_func(rb_random_t *, int) |
| typedef void rb_random_init_func(rb_random_t *, const uint32_t *, size_t) |
| typedef struct rb_random_struct rb_random_t |
| void rb_rand_bytes_int32 | ( | rb_random_get_int32_func * | get_int32, |
| rb_random_t * | rnd, | ||
| void * | p, | ||
| size_t | n | ||
| ) |
Definition at line 1182 of file random.c.
References CHAR_BIT, ptr, and SIZEOF_INT32.
| void rb_random_base_init | ( | rb_random_t * | rnd | ) |
Definition at line 333 of file random.c.
References INT2FIX, and rb_random_struct::seed.
| void rb_random_mark | ( | void * | ptr | ) |
|
extern |