summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/net_crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c
index cbca250b..26102a02 100644
--- a/core/net_crypto.c
+++ b/core/net_crypto.c
@@ -144,8 +144,9 @@ void random_nonce(uint8_t * nonce)
144 uint32_t i, j, r, m = crypto_box_NONCEBYTES / 3, ind = 0; 144 uint32_t i, j, r, m = crypto_box_NONCEBYTES / 3, ind = 0;
145 for(i = 0; i < m; ++i) 145 for(i = 0; i < m; ++i)
146 { 146 {
147 r = ranom_int(); 147 r = random_int();
148 for (j = 0; j < 3; j++) { 148 for (j = 0; j < 3; j++)
149 {
149 nonce[ind] = r % 1000 % 256; 150 nonce[ind] = r % 1000 % 256;
150 r /= 1000; 151 r /= 1000;
151 ++ind; 152 ++ind;