diff --git a/gen_hashes.py b/gen_hashes.py index ea8f211..5144a56 100755 --- a/gen_hashes.py +++ b/gen_hashes.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/python import sys import os @@ -7,6 +7,6 @@ hash_size = int(int(sys.argv[1]) / 8) count = int(sys.argv[2]) for i in range(count): - sys.stdout.buffer.write(base64.b16encode(os.urandom(hash_size))) - sys.stdout.buffer.write(b'\n') + print(base64.b16encode(os.urandom(hash_size))) +