summaryrefslogtreecommitdiff
path: root/core/net_crypto.c
diff options
context:
space:
mode:
authorredwire <redwire@riseup.net>2013-07-21 21:23:21 -0230
committerredwire <redwire@riseup.net>2013-07-21 21:23:21 -0230
commitb16013b86be5063dfe32a59cf04febebed0a6d35 (patch)
tree7c527674aea897146dc4b2b6e000ad81cd0ddb44 /core/net_crypto.c
parent99c3426cbcb91a1b3509671c11ebffb1778057e6 (diff)
Fixed temp redeclaration
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r--core/net_crypto.c2
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}