diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-11-06 15:14:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-11-09 22:30:49 +0000 |
commit | aed24408db9cd8afe632a1d3f056669ae34f49be (patch) | |
tree | 77cb037490b3f97af949eb39dfdf2e1e513b61d1 /toxcore/crypto_core.h | |
parent | 42dfdf73c1dfd899a4f5a44ea1584aaf3a4ed3d2 (diff) |
Remove new_nonce function in favour of random_nonce.
`new_nonce` has been an alias for `random_nonce` for a while now. Having
two names for the same operation is confusing. `random_nonce` better
expresses the intent. The documentation for `new_nonce` talks about
guaranteeing that the nonce is different from previous ones, which is
incorrect, it's just quite likely to be different.
Diffstat (limited to 'toxcore/crypto_core.h')
-rw-r--r-- | toxcore/crypto_core.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h index 90bd122e..a3463c38 100644 --- a/toxcore/crypto_core.h +++ b/toxcore/crypto_core.h | |||
@@ -119,7 +119,4 @@ void random_nonce(uint8_t *nonce); | |||
119 | /* Fill a key crypto_box_KEYBYTES big with random bytes */ | 119 | /* Fill a key crypto_box_KEYBYTES big with random bytes */ |
120 | void new_symmetric_key(uint8_t *key); | 120 | void new_symmetric_key(uint8_t *key); |
121 | 121 | ||
122 | /*Gives a nonce guaranteed to be different from previous ones.*/ | ||
123 | void new_nonce(uint8_t *nonce); | ||
124 | |||
125 | #endif | 122 | #endif |