aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 17:38:01 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 17:38:01 +0800
commit8fe580ea526a048148df2b3545f903eae660ed58 (patch)
tree52cfb1e8923864978a50e9fe304f952218c8a43f /src
parent7c40fee2ad0f390f350c0226108218190fb9c98a (diff)
downloaddexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar.gz
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar.bz2
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar.lz
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar.xz
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.tar.zst
dexon-sol-tools-8fe580ea526a048148df2b3545f903eae660ed58.zip
More descriptive comment
Diffstat (limited to 'src')
-rw-r--r--src/ts/0x.js.ts6
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