initial implementation of xorshift128 and xorshift128plus

This commit is contained in:
Dmitry Kokorin 2016-11-30 15:32:54 +03:00
commit 45342ac49d
6 changed files with 120 additions and 0 deletions

14
xorshift.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef _XORSHIFT_H_
#define _XORSHIFT_H_
#include <stdint.h>
void set_xorshift128_seed(uint32_t seed[4]);
uint32_t xorshift128();
void set_xorshift128plus_seed(uint64_t seed[2]);
uint64_t xorshift128plus();
#endif