move random initialization to primitives

This commit is contained in:
Daan Leijen 2023-03-15 12:40:18 -07:00
parent 9b110090b2
commit 973268bf1e
5 changed files with 150 additions and 159 deletions

View file

@ -72,6 +72,10 @@ void _mi_prim_out_stderr( const char* msg );
bool _mi_prim_getenv(const char* name, char* result, size_t result_size);
// Fill a buffer with strong randomness; return `false` on error or if
// there is no strong randomization available.
bool _mi_prim_random_buf(void* buf, size_t buf_len);
//-------------------------------------------------------------------
// Thread id
//