-#include <wasi/api.h>
#include <errno.h>
#include <unistd.h>
-
-#ifdef _REENTRANT
-#error With threads support, getentropy is not intended to be a cancellation point.
-#endif
+#include <wasi/api.h>
int __getentropy(void *buffer, size_t len) {
if (len > 256) {