initial implementation of xorshift128 and xorshift128plus
This commit is contained in:
commit
45342ac49d
6 changed files with 120 additions and 0 deletions
14
xorshift.h
Normal file
14
xorshift.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue