diff options
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r-- | toxcore/onion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion.c b/toxcore/onion.c index b4d2a364..961f5bd5 100644 --- a/toxcore/onion.c +++ b/toxcore/onion.c | |||
@@ -55,7 +55,7 @@ int send_onion_packet(DHT *dht, Node_format *nodes, uint8_t *data, uint32_t leng | |||
55 | memcpy(step1 + sizeof(IP_Port), data, length); | 55 | memcpy(step1 + sizeof(IP_Port), data, length); |
56 | 56 | ||
57 | uint8_t nonce[crypto_box_NONCEBYTES]; | 57 | uint8_t nonce[crypto_box_NONCEBYTES]; |
58 | new_nonce(nonce); | 58 | random_nonce(nonce); |
59 | uint8_t random_public_key[crypto_box_PUBLICKEYBYTES]; | 59 | uint8_t random_public_key[crypto_box_PUBLICKEYBYTES]; |
60 | uint8_t random_secret_key[crypto_box_SECRETKEYBYTES]; | 60 | uint8_t random_secret_key[crypto_box_SECRETKEYBYTES]; |
61 | crypto_box_keypair(random_public_key, random_secret_key); | 61 | crypto_box_keypair(random_public_key, random_secret_key); |