Files
psat/rng.h
gothictomato a1b6cdaea9 Progress on early subsumption
Signed-off-by: gothictomato <gothictomato@pm.me>
2022-08-18 22:04:52 -04:00

15 lines
281 B
C

#pragma once
#include "types.h"
typedef struct {
bool ready;
u64 state[8];
} rngstate;
void seed(rngstate* s, u64 seed);
u64 ru64(rngstate* s);
u32 ru32(rngstate* s);
f64 rf64(rngstate* s);
f32 rf32(rngstate* s);
void jump(rngstate* s);
u64 ru64pow(rngstate* s, u64 max);