From 7259a13b3659031ee810e6c5986f4a3934c25792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Hern=C3=A1ndez=20Serrano?= Date: Sun, 21 Apr 2019 09:41:25 +0200 Subject: [PATCH] Fixed typo --- README.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.hbs b/README.hbs index cb09ca8..652fec7 100644 --- a/README.hbs +++ b/README.hbs @@ -45,7 +45,7 @@ if ( await bigintCryptoUtils.isProbablyPrime(prime) ) // code if is prime // 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); // 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); })();