mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-16 08:12:14 -06:00
16 lines
309 B
Python
16 lines
309 B
Python
import random
|
|
import string
|
|
import time
|
|
|
|
|
|
def epoch() -> int:
|
|
return int(time.time())
|
|
|
|
|
|
def random_string(length: int = 10) -> str:
|
|
return "".join(random.choices(string.ascii_lowercase + string.digits, k=length))
|
|
|
|
|
|
def random_email() -> str:
|
|
return random_string() + str(epoch()) + "@example.com"
|