Skip to content

Commit

Permalink
something new too
Browse files Browse the repository at this point in the history
  • Loading branch information
hearues-zueke-github committed Apr 12, 2018
1 parent bc85667 commit 3430a64
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Empty file added __init__.py
Empty file.
Empty file added encryption/__init__.py
Empty file.
Empty file added test_programs/__init__.py
Empty file.
22 changes: 22 additions & 0 deletions test_programs/create_random_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#! /usr/bin/python2.7

import numpy as np

import os


import sys
sys.path.append('..')
# sys.path.append('../encryption')

from encryption import Utils

arr_rnd = np.random.randint(0, 256, (1024*1024*1, )).astype(np.uint8)
# print("arr_rnd:")
# Utils.pretty_block_printer(arr_rnd, 8, len(arr_rnd))

# path = "/home/doublepmcl/Document"
# os.chdir(path)

with open("/home/doublepmcl/Documents/random_data.hex", "wb") as fout:
arr_rnd.tofile(fout)

0 comments on commit 3430a64

Please sign in to comment.