diff options
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r-- | src/0x.js.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts index 2bf8cad5e..01820d075 100644 --- a/src/0x.js.ts +++ b/src/0x.js.ts @@ -22,8 +22,6 @@ import {orderSchema} from './schemas/order_schemas'; // Customize our BigNumber instances bigNumberConfigs.configure(); -const MAX_DIGITS_IN_UNSIGNED_256_INT = 78; - export class ZeroEx { public static NULL_ADDRESS = constants.NULL_ADDRESS; @@ -62,8 +60,8 @@ export class ZeroEx { public static generatePseudoRandomSalt(): BigNumber.BigNumber { // BigNumber.random returns a pseudo-random number between 0 & 1 with a passed in number of decimal places. // Source: https://mikemcl.github.io/bignumber.js/#random - const randomNumber = BigNumber.random(MAX_DIGITS_IN_UNSIGNED_256_INT); - const factor = new BigNumber(10).pow(MAX_DIGITS_IN_UNSIGNED_256_INT - 1); + const randomNumber = BigNumber.random(constants.MAX_DIGITS_IN_UNSIGNED_256_INT); + const factor = new BigNumber(10).pow(constants.MAX_DIGITS_IN_UNSIGNED_256_INT - 1); const salt = randomNumber.times(factor).round(); return salt; } |