play/scripts/pppassword
Artemis Tosini cdab9d90a1
A bunch of changers I neglected to commit earlier
Strange size things (i7 in llvm)
Hellp world in idris
A rolldice test
pppassword changes to add b
2018-12-09 23:54:13 +00:00

16 lines
246 B
Python
Executable file

#!/usr/bin/env python3
import sys
import os
import secrets
a = "".join(sys.argv[1:])
d = "pq"
if "b" in a:
d = d + "b"
if "u" in a:
d = d + d.upper()
l = 16 + secrets.randbelow(16)
print(''.join([secrets.choice(d) for _ in range(l)]))