diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index 8f7cf9b640..36c983732c 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -10,7 +10,7 @@ const ( 'vlib/cli/command_test.v', 'vlib/cli/flag_test.v', 'vlib/crypto/aes/aes_test.v', - 'vlib/crypto/rand/rand_test.v', + 'vlib/crypto/rand/rand_test.v', // macOS only 'vlib/crypto/rc4/rc4_test.v', 'vlib/encoding/utf8/utf8_util_test.v', 'vlib/eventbus/eventbus_test.v', diff --git a/vlib/crypto/rand/rand.v b/vlib/crypto/rand/rand.v index f8f1c66cb2..c7f02c874b 100644 --- a/vlib/crypto/rand/rand.v +++ b/vlib/crypto/rand/rand.v @@ -9,7 +9,7 @@ const ( ) // NOTE: temp until we have []bytes(buff) -fn c_array_to_bytes_tmp(len, buffer voidptr) []byte { +fn c_array_to_bytes_tmp(len int, buffer voidptr) []byte { mut arr := []byte arr = make(len, 1, 1) diff --git a/vlib/crypto/rand/rand_darwin.v b/vlib/crypto/rand/rand_darwin.c.v similarity index 100% rename from vlib/crypto/rand/rand_darwin.v rename to vlib/crypto/rand/rand_darwin.c.v diff --git a/vlib/crypto/rand/rand_linux.v b/vlib/crypto/rand/rand_linux.c.v similarity index 100% rename from vlib/crypto/rand/rand_linux.v rename to vlib/crypto/rand/rand_linux.c.v diff --git a/vlib/crypto/rand/rand_solaris.v b/vlib/crypto/rand/rand_solaris.c.v similarity index 100% rename from vlib/crypto/rand/rand_solaris.v rename to vlib/crypto/rand/rand_solaris.c.v diff --git a/vlib/crypto/rand/rand_windows.v b/vlib/crypto/rand/rand_windows.c.v similarity index 100% rename from vlib/crypto/rand/rand_windows.v rename to vlib/crypto/rand/rand_windows.c.v