Skip to content

Commit

Permalink
Fix compatibility with older versions of NodeJS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Aunis committed Mar 2, 2020
1 parent 3bfbd18 commit de316ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AmiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit de316ab

Please sign in to comment.