perf(games/assettocorsa): replace parseInt with Math.floor

This commit is contained in:
CosminPerRam 2024-07-07 20:50:48 +03:00
parent 402be8a357
commit 8a968c006c

View File

@ -7,7 +7,7 @@ export default class assettocorsa extends Core {
responseType: 'json'
})
const carInfo = await this.request({
url: `http://${this.options.address}:${this.options.port}/JSON|${parseInt(Math.random() * 999999999999999, 10)}`,
url: `http://${this.options.address}:${this.options.port}/JSON|${Math.floor(Math.random() * 999999999999999)}`,
responseType: 'json'
})