Browse Source

Added random_init_by_array to tinymt32 wrapper

pr/spi.typo
Simon Brummer 7 years ago
parent
commit
5e20cd9b67
  1. 5
      sys/random/prng_tinymt32.c

5
sys/random/prng_tinymt32.c

@ -34,3 +34,8 @@ uint32_t random_uint32(void)
{
return tinymt32_generate_uint32(&_random);
}
void random_init_by_array(uint32_t init_key[], int key_length)
{
tinymt32_init_by_array(&_random, init_key, key_length);
}

Loading…
Cancel
Save