aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-08 05:32:01 +0800
committerFabio Berger <me@fabioberger.com>2017-12-08 05:32:01 +0800
commit5301086c68e9a102efa91efe14c1226df58669a1 (patch)
treed049508e3c52cd3bed0a58fdb818f7bcc24f8e61 /packages/subproviders/src
parent5687279c8d87c675fd2afbca08f0fc259b06dd21 (diff)
downloaddexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar.gz
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar.bz2
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar.lz
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar.xz
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.tar.zst
dexon-sol-tools-5301086c68e9a102efa91efe14c1226df58669a1.zip
Add link to random id generator
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/subprovider.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts
index 07f4d6353..64d97b958 100644
--- a/packages/subproviders/src/subproviders/subprovider.ts
+++ b/packages/subproviders/src/subproviders/subprovider.ts
@@ -12,6 +12,7 @@ import {
export class Subprovider {
private engine: any;
private currentBlock: any;
+ // Ported from: https://github.com/MetaMask/provider-engine/blob/master/util/random-id.js
private static getRandomId() {
const extraDigits = 3;
// 13 time digits