From de316ab9ea7ec088fbb261d19d36a4729cf48f29 Mon Sep 17 00:00:00 2001 From: Jean Aunis Date: Mon, 2 Mar 2020 16:32:51 +0100 Subject: [PATCH] Fix compatibility with older versions of NodeJS --- lib/AmiClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AmiClient.js b/lib/AmiClient.js index 864d163..4bd04b2 100644 --- a/lib/AmiClient.js +++ b/lib/AmiClient.js @@ -322,7 +322,7 @@ class AmiClient extends EventEmitter{ * @private */ _random() { - return Math.floor(Math.random() * (10 ** 10)); + return Math.floor(Math.random() * Math.pow(10, 10)); } /**