Skip to content

Instantly share code, notes, and snippets.

View mantoles's full-sized avatar

Sophronis Mantoles mantoles

  • Private
  • Minneapolis
View GitHub Profile
@mrmekon
mrmekon / whitening.py
Created February 16, 2012 18:55
Data whitening (scrambling) with 9-bit LFSR
import sys
import os
import numpy
import random
import string
import matplotlib.pyplot as plt
#data = numpy.random.bytes(10000000)
data = [random.choice(string.printable) for x in xrange(1000000)]
#data = numpy.random.bytes(100)