From 7356770dbee9e1df3e325c7b05c569507b7119ce Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 22 Apr 2013 13:13:31 -0700 Subject: [PATCH] Another random() -> rand() --- src/libsodium/sodium/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index b24039b4..70ff1136 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -41,7 +41,7 @@ _sodium_alignedcalloc(unsigned char ** const unaligned_p, const size_t len) } *unaligned_p = unaligned; for (i = (size_t) 0U; i < len + (size_t) 256U; ++i) { - unaligned[i] = (unsigned char) random(); + unaligned[i] = (unsigned char) rand(); } aligned = unaligned + 64; aligned += (ptrdiff_t) 63 & (-(ptrdiff_t) aligned);