diff --git a/src/pal/pal_haiku.h b/src/pal/pal_haiku.h index 89c99fc61..476c3fc11 100644 --- a/src/pal/pal_haiku.h +++ b/src/pal/pal_haiku.h @@ -6,6 +6,8 @@ # include +extern uint64_t secure_get_random(); + namespace snmalloc { /** @@ -43,6 +45,11 @@ namespace snmalloc mprotect(p, size, PROT_NONE); # endif } + + static uint64_t get_entropy64() + { + return secure_get_random(); + } }; } // namespace snmalloc #endif