diff --git a/bignumber.js b/bignumber.js index 7650534..55807e5 100644 --- a/bignumber.js +++ b/bignumber.js @@ -604,11 +604,7 @@ i = k / 7; } else { CRYPTO = false; - - if (ERRORS) { - raise( 14, 'crypto unavailable', - crypto.getRandomValues || crypto.randomBytes ); - } + if (ERRORS) raise( 14, 'crypto unavailable', crypto ); } }