From 1037e70462d42018b850b6a9c9e0849a8c4f6914 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 23 Jul 2015 13:22:20 -0700 Subject: [PATCH] Use timestamp for domain --- common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.js b/common.js index 270cb72..1d93d74 100644 --- a/common.js +++ b/common.js @@ -10,9 +10,10 @@ exports = module.exports = { verifyResponse: verifyResponse }; +var gNow = (new Date()).getTime().toString(); + function cloudronDomain(filename) { - var r = (Math.random() * 1000).toFixed(); - return 't-' + path.basename(filename, '-test.js') + '-' + r + '.smartserver.io'; + return 't-' + path.basename(filename, '-test.js') + '-' + gNow + '.smartserver.io'; } function verifyResponse(res, errorMessage) {