diff --git a/test/pummel/test-crypto-dh-hash.js b/test/pummel/test-crypto-dh-hash.js index 3ad974ff329efd..a912504bebd6ae 100644 --- a/test/pummel/test-crypto-dh-hash.js +++ b/test/pummel/test-crypto-dh-hash.js @@ -45,10 +45,10 @@ const hashes = { for (const name in hashes) { const group = crypto.getDiffieHellman(name); - const private_key = group.getPrime('hex'); + const prime = group.getPrime('hex'); const hash1 = hashes[name]; const hash2 = crypto.createHash('sha1') - .update(private_key.toUpperCase()).digest('hex'); + .update(prime.toUpperCase()).digest('hex'); assert.strictEqual(hash1, hash2); assert.strictEqual(group.getGenerator('hex'), '02'); }