From f931f37bb4ddcca8bfa18dc0620f677a7d3c83c2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 30 Mar 2020 19:08:05 +0200 Subject: [PATCH] Replace deprecated function in test --- src/libsodium/crypto_core/ed25519/core_ed25519.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_core/ed25519/core_ed25519.c b/src/libsodium/crypto_core/ed25519/core_ed25519.c index 0029a093..bb0bda4e 100644 --- a/src/libsodium/crypto_core/ed25519/core_ed25519.c +++ b/src/libsodium/crypto_core/ed25519/core_ed25519.c @@ -81,10 +81,10 @@ crypto_core_ed25519_from_hash(unsigned char *p, const unsigned char *h) void 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); - (void) crypto_core_ed25519_from_hash(p, h); + (void) crypto_core_ed25519_from_uniform(p, h); } void