Spaces:
Running
Running
Add random seed to avoid duplicate simulationNames (#1)
Browse files- Add random seed to avoid duplicate simulationNames (8d8a0dbafe6734efaed1c3338af4f649021c8b93)
Co-authored-by: Tristan Deborde <Trist4x@users.noreply.huggingface.co>
cubzh.lua
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
Modules = {
|
2 |
gigax = "github.com/GigaxGames/integrations/cubzh:5025b99",
|
3 |
pathfinding = "github.com/caillef/cubzh-library/pathfinding:f8c4315",
|
|
|
1 |
+
math.randomseed(math.floor(Time.UnixMilli() % 100000))
|
2 |
+
|
3 |
Modules = {
|
4 |
gigax = "github.com/GigaxGames/integrations/cubzh:5025b99",
|
5 |
pathfinding = "github.com/caillef/cubzh-library/pathfinding:f8c4315",
|