Skip to content

Instantly share code, notes, and snippets.

@arobb
Last active July 20, 2017 21:26
Show Gist options
  • Save arobb/45ed57ef9fbfc0908e00bd24d8a1e37e to your computer and use it in GitHub Desktop.
Save arobb/45ed57ef9fbfc0908e00bd24d8a1e37e to your computer and use it in GitHub Desktop.
https://superuser.com/questions/792427/creating-a-large-file-of-random-bytes-quickly
Slight modification to watch progress
dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero) \
bs=1M count=7000 iflag=fullblock \
| pv -pterb > random-7G.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment