copy -> set

This commit is contained in:
Mathias Buus 2020-06-18 17:12:00 +02:00
parent b44f83f0a8
commit f033af88bd

View File

@ -131,7 +131,7 @@ function crypto_sign_keypair(pk, sk, seeded) {
function crypto_sign_seed_keypair (pk, sk, seed) { function crypto_sign_seed_keypair (pk, sk, seed) {
check(seed, crypto_sign_SEEDBYTES) check(seed, crypto_sign_SEEDBYTES)
seed.copy(sk) sk.set(seed)
return crypto_sign_keypair(pk, sk, true) return crypto_sign_keypair(pk, sk, true)
} }