We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08b942 commit da02696Copy full SHA for da02696
host_key_rotation.py
@@ -18,7 +18,7 @@ def host_key(timeslot: datetime.datetime) -> int:
18
key_salt = os.getenv("HOST_KEY_SALT").encode()
19
timestamp = timeslot.replace(second=0, microsecond=0, minute=0).timestamp()
20
hashed = hashlib.sha512(int(timestamp).to_bytes(5, "big") + key_salt)
21
- result = f"{int(hashed.hexdigest(), 16) % int(1e6):06}"
+ return f"{int(hashed.hexdigest(), 16) % int(1e6):06}"
22
23
24
def update_host_key():
0 commit comments