Skip to content

Commit 2b86e9f

Browse files
committed
Fixing proof solution
1 parent 6687c47 commit 2b86e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/diffie-hellman/.meta/proof.ci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ export class DiffieHellman {
115115
}
116116

117117
static getPrivateKey(p) {
118-
return Math.floor(Math.random() * (p - 1) + 2);
118+
return Math.floor(Math.random() * (p - 2) + 2);
119119
}
120120
}

0 commit comments

Comments
 (0)