diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 17:38:01 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 17:38:01 +0800 |
commit | 8fe580ea526a048148df2b3545f903eae660ed58 (patch) | |
tree | 52cfb1e8923864978a50e9fe304f952218c8a43f /src/ts/0x.js.ts | |
parent | 7c40fee2ad0f390f350c0226108218190fb9c98a (diff) | |
download | dexon-0x-contracts-8fe580ea526a048148df2b3545f903eae660ed58.tar.gz dexon-0x-contracts-8fe580ea526a048148df2b3545f903eae660ed58.tar.zst dexon-0x-contracts-8fe580ea526a048148df2b3545f903eae660ed58.zip |
More descriptive comment
Diffstat (limited to 'src/ts/0x.js.ts')
-rw-r--r-- | src/ts/0x.js.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index 14f9f2061..4b9680a18 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -36,7 +36,11 @@ export class ZeroEx { return false; } } - /** Generates pseudo-random 256 bits salt */ + /** + * Generates pseudo-random 256 bit salt. + * The salt is used to ensure that the 0x order generated has a unique orderHash that does + * not collide with any other outstanding orders. + */ 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 |