summaryrefslogtreecommitdiff
path: root/randtest.py
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-07-05 05:41:34 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-07-05 05:41:34 -0700
commit705ab0555e1c8a8f1a34b61ddd33ab3a4b315f60 (patch)
tree29c720587297dfe203c8f106f2f0e089fe8a6680 /randtest.py
parentb36620eefa2fd91e695d0e7f11bea34b09c9a43d (diff)
changed formatijnig
Diffstat (limited to 'randtest.py')
-rwxr-xr-xrandtest.py2
1 files changed, 2 insertions, 0 deletions
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