rusEFI
The most advanced open source ECU
|
Tiny Mersenne Twister only 127 bit internal state.
Copyright (C) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima University and The University of Tokyo. All rights reserved.
The 3-clause BSD License is applied to this software, see LICENSE.txt
Definition in file tinymt32.c.
Functions | |
static uint32_t | ini_func1 (uint32_t x) |
static uint32_t | ini_func2 (uint32_t x) |
static void | period_certification (tinymt32_t *random) |
void | tinymt32_init (tinymt32_t *random, uint32_t seed) |
void | tinymt32_init_by_array (tinymt32_t *random, uint32_t init_key[], int key_length) |
|
static |
This function represents a function used in the initialization by init_by_array
x | 32-bit integer |
Definition at line 26 of file tinymt32.c.
Referenced by tinymt32_init_by_array().
|
static |
This function represents a function used in the initialization by init_by_array
x | 32-bit integer |
Definition at line 36 of file tinymt32.c.
Referenced by tinymt32_init_by_array().
|
static |
This function certificate the period of 2^127-1.
random | tinymt state vector. |
Definition at line 44 of file tinymt32.c.
Referenced by tinymt32_init(), and tinymt32_init_by_array().
void tinymt32_init | ( | tinymt32_t * | random, |
uint32_t | seed | ||
) |
This function initializes the internal state array with a 32-bit unsigned integer seed.
random | tinymt state vector. |
seed | a 32-bit unsigned integer used as a seed. |
Definition at line 62 of file tinymt32.c.
Referenced by configureRusefiLuaHooks(), and initLaunchControl().
void tinymt32_init_by_array | ( | tinymt32_t * | random, |
uint32_t | init_key[], | ||
int | key_length | ||
) |
This function initializes the internal state array, with an array of 32-bit unsigned integers used as seeds
random | tinymt state vector. |
init_key | the array of 32-bit integers, used as a seed. |
key_length | the length of init_key. |
Definition at line 85 of file tinymt32.c.