From c17bcdf0361cb285f9a3e6646d53068c5a8713d6 Mon Sep 17 00:00:00 2001 From: error2215 Date: Fri, 3 Jun 2022 18:10:47 +0300 Subject: [PATCH] Feature/darwin arm support (#27) * darwin arm64 support * darwin arm64 flag secure * fix goos == darwin --- randomy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randomy.go b/randomy.go index 12ce490..652dc7f 100644 --- a/randomy.go +++ b/randomy.go @@ -56,7 +56,7 @@ func GetFlags() C.randomx_flags { if hasAES() { flag += FlagHardAES } - if runtime.GOARCH == "arm64" && runtime.GOOS == "macos" { + if runtime.GOARCH == "arm64" && runtime.GOOS == "darwin" { flag += FlagSecure } return flag