#include "internal.h"
#include <limits.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <math.h>
#include <errno.h>
#include "ruby_atomic.h"
#include "siphash.c"
Go to the source code of this file.
◆ BIG_ENDIAN
◆ BYTE_ORDER
◆ DEFAULT_SEED_CNT
#define DEFAULT_SEED_CNT 4 |
◆ DEFAULT_SEED_LEN
◆ fill_random_bytes_syscall
#define fill_random_bytes_syscall |
( |
|
seed, |
|
|
|
size, |
|
|
|
need_secure |
|
) |
| -1 |
◆ fill_random_bytes_urandom
#define fill_random_bytes_urandom |
( |
|
seed, |
|
|
|
size |
|
) |
| -1 |
◆ genrand_initialized
#define genrand_initialized |
( |
|
mt | ) |
((mt)->next != 0) |
◆ id_minus
◆ id_plus
◆ LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234 |
◆ LMASK
#define LMASK 0x7fffffffU /* least significant r bits */ |
◆ MATRIX_A
#define MATRIX_A 0x9908b0dfU /* constant vector a */ |
◆ MIXBITS
#define MIXBITS |
( |
|
u, |
|
|
|
v |
|
) |
| ( ((u) & UMASK) | ((v) & LMASK) ) |
◆ sip_hash13
#define sip_hash13 ruby_sip_hash13 |
◆ SIP_HASH_STREAMING
#define SIP_HASH_STREAMING 0 |
◆ SIZEOF_INT32
◆ TWIST
#define TWIST |
( |
|
u, |
|
|
|
v |
|
) |
| ((MIXBITS((u),(v)) >> 1) ^ ((v)&1U ? MATRIX_A : 0U)) |
◆ UMASK
#define UMASK 0x80000000U /* most significant w-r bits */ |
◆ uninit_genrand
#define uninit_genrand |
( |
|
mt | ) |
((mt)->next = 0) |
◆ USE_DEV_URANDOM
#define USE_DEV_URANDOM 0 |
◆ int_must_be_32bit_at_least
typedef int int_must_be_32bit_at_least[sizeof(int) *CHAR_BIT< 32 ? -1 :1] |
◆ anonymous enum
◆ Init_Random()
void Init_Random |
( |
void |
| ) |
|
◆ Init_RandomSeedCore()
void Init_RandomSeedCore |
( |
void |
| ) |
|
◆ InitVM_Random()
void InitVM_Random |
( |
void |
| ) |
|
◆ NORETURN() [1/2]
NORETURN |
( |
static void |
domain_errorvoid | ) |
|
◆ NORETURN() [2/2]
NORETURN |
( |
static void |
invalid_argumentVALUE | ) |
|
◆ rb_genrand_int32()
unsigned int rb_genrand_int32 |
( |
void |
| ) |
|
◆ rb_genrand_real()
double rb_genrand_real |
( |
void |
| ) |
|
◆ rb_genrand_ulong_limited()
unsigned long rb_genrand_ulong_limited |
( |
unsigned long |
limit | ) |
|
◆ rb_hash_start()
◆ rb_memhash()
◆ rb_random_bytes()
◆ rb_random_int32()
unsigned int rb_random_int32 |
( |
VALUE |
obj | ) |
|
◆ rb_random_real()
double rb_random_real |
( |
VALUE |
obj | ) |
|
◆ rb_random_ulong_limited()
unsigned long rb_random_ulong_limited |
( |
VALUE |
obj, |
|
|
unsigned long |
limit |
|
) |
| |
◆ rb_reset_random_seed()
void rb_reset_random_seed |
( |
void |
| ) |
|
◆ key
◆ rb_cRandom
◆ u32