Sfoglia il codice sorgente

add: randoom.seed for synced FX

micha 1 anno fa
parent
commit
e8b460dd57
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 1 0
      _LibreLightDesk.py
  2. 1 0
      _console.py

+ 1 - 0
_LibreLightDesk.py

@@ -908,6 +908,7 @@ def process_wings(xfixtures):
         _wing_buffer = []
         for wing in wing_buffer:
             wing = wing[:]
+            random.seed(9300) # sync random
             random.shuffle(wing)
             _wing_buffer.append(wing)
         wing_buffer = _wing_buffer

+ 1 - 0
_console.py

@@ -277,6 +277,7 @@ class MASTER_FX():
         #self.init = 0
 
         #cprint(self.old_offsets)
+        random.seed(1000)
         random.shuffle(self.old_offsets)
         #cprint(self.old_offsets)
     def _init(self):