#ifndef CPRNG_H #define CPRNG_H #include struct cprng { uint8_t state[64]; uint8_t cached; }; void cprng_seed(struct cprng *, uint8_t[32]); void cprng_buf(struct cprng *, void *, size_t); uint32_t cprng32(struct cprng *); uint64_t cprng64(struct cprng *); #endif /* CPRNG_H */