Implemented interface authentication and virtual network segmentation

This commit is contained in:
Mark Qvist
2022-04-27 19:00:09 +02:00
parent b701cdd07f
commit 5d90ea565a
4 changed files with 117 additions and 28 deletions
+3 -2
View File
@@ -60,7 +60,8 @@ logfile = None
logdest = LOG_STDOUT
logtimefmt = "%Y-%m-%d %H:%M:%S"
random.seed(os.urandom(10))
instance_random = random.Random()
instance_random.seed(os.urandom(10))
_always_override_destination = False
@@ -130,7 +131,7 @@ def log(msg, level=3, _override_destination = False):
def rand():
result = random.random()
result = instance_random.random()
return result
def hexrep(data, delimit=True):