From 705ab0555e1c8a8f1a34b61ddd33ab3a4b315f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Wed, 5 Jul 2023 05:41:34 -0700 Subject: changed formatijnig --- randtest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'randtest.py') diff --git a/randtest.py b/randtest.py index 1be410e..14a6c97 100755 --- a/randtest.py +++ b/randtest.py @@ -15,11 +15,13 @@ def main(): help='file name to write to', default='test') args = parg.parse_args() + fname = args.file nbytes = args.nbytes #random random.seed(datetime.datetime.now().microsecond) + #file open in byte mode f = open(fname, 'wb') #write the file -- cgit v1.1