Changes to OE Pal.
This commit is contained in:
committed by
Matthew Parkinson
parent
0377fd88d4
commit
52a1a9cce1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#define SNMALLOC_SGX
|
||||
#define OPEN_ENCLAVE
|
||||
#define OE_OK 0
|
||||
#define OPEN_ENCLAVE_SIMULATION
|
||||
#include <iostream>
|
||||
#include <snmalloc.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user