Update code comment (#90)

This commit is contained in:
Hans Bergren
2020-01-24 10:00:03 -05:00
parent 41d9b0b660
commit d97e15f5c3

View File

@@ -25,7 +25,7 @@ function deriveScalar(bytes, discrim?: number) {
* https://github.com/indutny/elliptic/blob/master/lib/elliptic/curves.js#L182
* How often will an (essentially) random number generated by Sha512 be larger than that?
* There's 2^32 chances (the for loop) to get a number smaller than the order,
* so it's rare that you'll even get past the first loop iteration.
* and it's rare that you'll even get past the first loop iteration.
* Note that in TypeScript we actually need the throw, otherwise the function signature would be BN | undefined
*/
/* istanbul ignore next */