diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c index 166adafb..bdde7063 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c | |||
@@ -144,7 +144,7 @@ void random_nonce(uint8_t * nonce) | |||
144 | uint32_t i, temp; | 144 | uint32_t i, temp; |
145 | for (i = 0; i < crypto_box_NONCEBYTES / 4; ++i) | 145 | for (i = 0; i < crypto_box_NONCEBYTES / 4; ++i) |
146 | { | 146 | { |
147 | uint32_t temp = random_int(); | 147 | temp = random_int(); |
148 | memcpy(nonce + 4 * i, &temp, 4); | 148 | memcpy(nonce + 4 * i, &temp, 4); |
149 | } | 149 | } |
150 | } | 150 | } |