Replace deprecated function in test

This commit is contained in:
Frank Denis 2020-03-30 19:08:05 +02:00
parent 57e753130e
commit f931f37bb4

View File

@ -81,10 +81,10 @@ crypto_core_ed25519_from_hash(unsigned char *p, const unsigned char *h)
void void
crypto_core_ed25519_random(unsigned char *p) crypto_core_ed25519_random(unsigned char *p)
{ {
unsigned char h[crypto_core_ed25519_HASHBYTES]; unsigned char h[crypto_core_ed25519_UNIFORMBYTES];
randombytes_buf(h, sizeof h); randombytes_buf(h, sizeof h);
(void) crypto_core_ed25519_from_hash(p, h); (void) crypto_core_ed25519_from_uniform(p, h);
} }
void void