mirror of
https://github.com/hanzo-io/cloud.git
synced 2026-10-30 18:57:42 +00:00
8 lines
161 B
Python
8 lines
161 B
Python
import os
|
|
|
|
|
|
def generate_otp():
|
|
"""Generates a cryptographically secure random OTP"""
|
|
|
|
return int.from_bytes(os.urandom(5), byteorder="big") % 900000 + 100000
|