Mercurial > repo
changeset 12351:af405b8a7235 draft
<wib_jonas> `` perl -pi -e \'s/random/secrets/;s/python/$&3/\' /hackenv/bin/password
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 04 Nov 2020 14:36:52 +0000 |
parents | 2678f7ed17a8 |
children | cf652da78b89 |
files | bin/password |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/password Wed Nov 04 14:35:59 2020 +0000 +++ b/bin/password Wed Nov 04 14:36:52 2020 +0000 @@ -1,6 +1,6 @@ -#!/usr/bin/python +#!/usr/bin/python3 -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))