changeset 12349:f468498767e6 draft

<wib_jonas> `` perl -pi -e s/random/secrets/ /hackenv/bin/password
author HackEso <hackeso@esolangs.org>
date Wed, 04 Nov 2020 14:35:42 +0000
parents 51ef64f7e399
children 2678f7ed17a8
files bin/password
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/password	Sun Nov 01 02:41:32 2020 +0000
+++ b/bin/password	Wed Nov 04 14:35:42 2020 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import random
+import secrets
 import string
 
-print "".join(random.choice(string.ascii_lowercase) for _ in xrange(15))
+print "".join(secrets.choice(string.ascii_lowercase) for _ in xrange(15))