from Crypto.Cipher import AES
import os
import numpy as np
import matplotlib.pyplot as plt
#secret = os.urandom(BLOCK_SIZE)
secret = np.array([23842839,234234,2342314,2342342], dtype=np.uint32)
counter = np.array([1,0,0,0], dtype=np.uint32)
aes = AES.new(secret)
aes.encrypt(counter)
aes.encrypt(counter)
x = np.fromstring(aes.encrypt(counter), dtype=np.uint32)
counter[0] += 1
x
counters = np.zeros((100000, 4), dtype=np.uint32)
counters[:, 0] = np.arange(len(counters))
numbers = np.fromstring(aes.encrypt(counters), dtype=np.uint32).reshape(-1)
plt.hist(numbers)