123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef PCG_BASIC_H_INCLUDED
- #define PCG_BASIC_H_INCLUDED 1
- #include "ms_stdint.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct pcg_state_setseq_64 {
- uint64_t state;
- uint64_t inc;
- } pcg32_random_t;
- #define PCG32_INITIALIZER { 0x853c49e6748fea9bULL, 0xda3e39cb94b95bdbULL }
- void pcg32_srandom_r(pcg32_random_t* rng, uint64_t initial_state, uint64_t initseq);
- uint32_t pcg32_random_r(pcg32_random_t* rng);
- #ifdef __cplusplus
- }
- #endif
- #endif
|