1 1.1 riastrad /* This overwrites dist/src/libsodium/include/sodium/randombytes.h */ 2 1.1 riastrad 3 1.2 riastrad #include <sys/cprng.h> 4 1.2 riastrad 5 1.1 riastrad static inline void 6 1.1 riastrad randombytes_buf(void * const buf, const size_t size) 7 1.1 riastrad { 8 1.1 riastrad 9 1.2 riastrad cprng_strong(kern_cprng, buf, size, 0); 10 1.1 riastrad } 11 1.1 riastrad 12 1.1 riastrad static inline void 13 1.1 riastrad randombytes_stir(void) 14 1.1 riastrad { 15 1.1 riastrad } 16