Hacker News new | ask | show | jobs
by ake111 5555 days ago
It's really much simpler than that:

  cd
  head --bytes=your_card_size /dev/random > tmp
  sha1sum tmp
  cp tmp /media/your_card
  sha1sum /media/your_card/tmp
2 comments

Never considered using head to get a bytestream from /dev/random. I've always used dd. Thanks for the tip!
If you are on linux, use /dev/urandom.