aduermael Trist4x commited on
Commit
6cc7412
1 Parent(s): 324acde

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>

Files changed (1) hide show
  1. cubzh.lua +2 -0
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",