mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-08 04:18:42 +03:00
move random initialization to primitives
This commit is contained in:
parent
9b110090b2
commit
973268bf1e
5 changed files with 150 additions and 159 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue