diff --git a/test/default/secretbox_easy2.c b/test/default/secretbox_easy2.c index 0ccc0f8f..7cacbd7a 100644 --- a/test/default/secretbox_easy2.c +++ b/test/default/secretbox_easy2.c @@ -22,7 +22,7 @@ main(void) k = (unsigned char *) sodium_malloc(crypto_secretbox_KEYBYTES); mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES); crypto_secretbox_keygen(k); - randombytes_buf(m, (unsigned long long) mlen); + randombytes_buf(m, mlen); randombytes_buf(nonce, crypto_secretbox_NONCEBYTES); crypto_secretbox_easy(c, m, (unsigned long long) mlen, nonce, k); if (crypto_secretbox_open_easy(