Changes to OE Pal.

This commit is contained in:
Matthew Parkinson
2021-03-29 09:40:41 +01:00
committed by Matthew Parkinson
parent 0377fd88d4
commit 52a1a9cce1
3 changed files with 3 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ namespace snmalloc
static uint64_t get_entropy64()
{
uint64_t result = 0;
if (oe_random(&result, sizeof(result)) != 0)
if (oe_random(&result, sizeof(result)) != OE_OK)
error("Failed to get system randomness");
return result;
}

View File

@@ -1,5 +1,6 @@
#define SNMALLOC_SGX
#define OPEN_ENCLAVE
#define OE_OK 0
#define OPEN_ENCLAVE_SIMULATION
#include <iostream>
#include <snmalloc.h>

View File

@@ -1,5 +1,6 @@
#undef SNMALLOC_USE_LARGE_CHUNKS
#define OPEN_ENCLAVE
#define OE_OK 0
#define OPEN_ENCLAVE_SIMULATION
#define NO_BOOTSTRAP_ALLOCATOR
#define SNMALLOC_EXPOSE_PAGEMAP