Merge pull request #1108 from ogmaresca/increase-random-seed-range

Increase the random seed range
This commit is contained in:
cmdr2 2023-04-06 15:39:43 +05:30 committed by GitHub
commit 5b00d54c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1122,7 +1122,7 @@ function createTask(task) {
function getCurrentUserRequest() {
const numOutputsTotal = parseInt(numOutputsTotalField.value)
const numOutputsParallel = parseInt(numOutputsParallelField.value)
const seed = (randomSeedField.checked ? Math.floor(Math.random() * 10000000) : parseInt(seedField.value))
const seed = (randomSeedField.checked ? Math.floor(Math.random() * (2**32 - 1)) : parseInt(seedField.value))
const newTask = {
batchesDone: 0,