Skip to content

Commit

Permalink
Change to yescrypt-best.c
Browse files Browse the repository at this point in the history
  • Loading branch information
hayzamjs committed Sep 10, 2019
1 parent 5b71de1 commit c5a56ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/randomx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (WITH_RANDOMX)
if (WIN32)
set(SOURCES_CRYPTO
"${SOURCES_CRYPTO}"
src/crypto/defyx/yescrypt-ref.c
src/crypto/defyx/yescrypt-best.c
)
else()
set(SOURCES_CRYPTO
Expand Down
5 changes: 4 additions & 1 deletion src/crypto/defyx/yescrypt-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
* SUCH DAMAGE.
*/

#ifdef __unix
#include <sys/mman.h>
#endif

#include <stdint.h>

#include "yescrypt.h"
Expand Down Expand Up @@ -76,7 +79,7 @@ alloc_region(yescrypt_region_t * region, size_t size)
#else
base = aligned = NULL;
if (size + 63 < size) {
errno = ENOMEM;
//errno = ENOMEM;
} else if ((base = malloc(size + 63)) != NULL) {
aligned = base + 63;
aligned -= (uintptr_t)aligned & 63;
Expand Down

0 comments on commit c5a56ff

Please sign in to comment.