Skip to content

Instantly share code, notes, and snippets.

@tossmilestone
Last active November 22, 2017 09:48
Show Gist options
  • Select an option

  • Save tossmilestone/1f615d2d2124fcd9452e34f9c014900b to your computer and use it in GitHub Desktop.

Select an option

Save tossmilestone/1f615d2d2124fcd9452e34f9c014900b to your computer and use it in GitHub Desktop.
Fill memory with bytes
#!/usr/bin/python2
import numpy
g = 10
result = [numpy.random.bytes(1024*1024) for x in xrange(g*1024)]
raw_input('Press <ENTER> to continue')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment