mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-07 23:53:11 +00:00
init random seed
This commit is contained in:
parent
66004c60f0
commit
38d1738565
@ -1,3 +1,5 @@
|
||||
import random
|
||||
|
||||
import simpy
|
||||
|
||||
from config import Config
|
||||
@ -7,6 +9,7 @@ from p2p import P2p
|
||||
|
||||
class Simulation:
|
||||
def __init__(self, config: Config):
|
||||
random.seed()
|
||||
self.config = config
|
||||
self.env = simpy.Environment()
|
||||
self.p2p = P2p(self.env)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user