Commit c54a329b authored by Olivier Crête's avatar Olivier Crête

stun: Rename rand function to make its strengh clear

It's only nonce level randomness, not long term key level.

Differential Revision: https://phabricator.freedesktop.org/D1711
parent 6e45d186
......@@ -72,7 +72,7 @@ void nice_RAND_bytes (uint8_t *dst, int len)
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
void nice_RAND_bytes (uint8_t *dst, int len)
void nice_RAND_nonce (uint8_t *dst, int len)
{
gnutls_rnd (GNUTLS_RND_NONCE, dst, len);
}
......
......@@ -45,6 +45,6 @@
#include <stdint.h>
#endif
void nice_RAND_bytes (uint8_t *dst, int len);
void nice_RAND_nonce (uint8_t *dst, int len);
#endif /* RAND_H */
......@@ -124,5 +124,5 @@ void stun_hash_creds (const uint8_t *realm, size_t realm_len,
void stun_make_transid (StunTransactionId id)
{
nice_RAND_bytes (id, 16);
nice_RAND_nonce (id, 16);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment