summaryrefslogtreecommitdiff
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
parentb36620eefa2fd91e695d0e7f11bea34b09c9a43d (diff)
changed formatijnig
-rwxr-xr-xrandtest.py2
-rw-r--r--test41
-rw-r--r--test5bin0 -> 333 bytes
3 files changed, 3 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
diff --git a/test4 b/test4
new file mode 100644
index 0000000..7967b8a
--- /dev/null
+++ b/test4
@@ -0,0 +1 @@
+/ 攧':2 v7{X \ No newline at end of file
diff --git a/test5 b/test5
new file mode 100644
index 0000000..9ede6eb
--- /dev/null
+++ b/test5
Binary files differ