Fixed typo

This commit is contained in:
Juan Hernández Serrano 2019-04-21 09:41:25 +02:00
parent 3f7caf4572
commit 7259a13b36
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ if ( await bigintCryptoUtils.isProbablyPrime(prime) )
// code if is prime // code if is prime
// Get a cryptographically secure random number between 1 and 2**256 bits. // Get a cryptographically secure random number between 1 and 2**256 bits.
const rnd = bigintCryptoUtils.randBetween(BigInt(2)**256); const rnd = bigintCryptoUtils.randBetween(BigInt(2)**BigInt(256));
``` ```
@ -73,7 +73,7 @@ From a browser, you can just load the module in a html page as:
alert(p.toString() + '\nIs prime?\n' + isPrime); alert(p.toString() + '\nIs prime?\n' + isPrime);
// Get a cryptographically secure random number between 1 and 2**256 bits. // Get a cryptographically secure random number between 1 and 2**256 bits.
const rnd = await bigintCryptoUtils.randBetween(BigInt(2)**256); const rnd = await bigintCryptoUtils.randBetween(BigInt(2)**BigInt(256));
alert(rnd); alert(rnd);
})(); })();
</script> </script>