Replace deprecated function in test
This commit is contained in:
parent
57e753130e
commit
f931f37bb4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user