# HG changeset patch # User HackEso # Date 1604500612 0 # Node ID af405b8a72358dfe2fff019c34b6360373643d65 # Parent 2678f7ed17a85ee0a0998c8c0f5460e8be965692 `` perl -pi -e \'s/random/secrets/;s/python/$&3/\' /hackenv/bin/password diff -r 2678f7ed17a8 -r af405b8a7235 bin/password --- 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))