This commit is contained in:
ed 2023-06-11 01:32:56 +00:00
parent 22dff4b0e5
commit 22cc22225a
2 changed files with 6 additions and 6 deletions

View file

@ -247,13 +247,13 @@ def get_fk_salt(cert_path) -> str:
ret = f.read().strip()
except:
if os.path.exists(cert_path):
print("salt from cert")
return unicode(os.path.getmtime(cert_path))
zi = os.path.getmtime(cert_path)
ret = "{}".format(zi).encode("utf-8")
else:
print("salt from os.random")
ret = base64.b64encode(os.urandom(18))
with open(fp, "wb") as f:
f.write(ret + b"\n")
with open(fp, "wb") as f:
f.write(ret + b"\n")
return ret.decode("utf-8")

View file

@ -1,6 +1,6 @@
# coding: utf-8
VERSION = (1, 7, 4)
VERSION = (1, 7, 5)
CODENAME = "unlinked"
BUILD_DT = (2023, 6, 11)