$ od 500megabytefile.tar.gz
0000000 000000 000000 000000 000000 000000 000000 000000 000000
*
27200000
(besides not being a .tar.gz, it's not 500 MB either, it's 512 000 000 bytes = 512 MB, or 488 MiB) $ od 500megabytefile.tar.gz
0000000 000000 000000 000000 000000 000000 000000 000000 000000
*
27200000
(besides not being a .tar.gz, it's not 500 MB either, it's 512 000 000 bytes = 512 MB, or 488 MiB)It is just much easier to find a file that is some exact distance if you create it first.
[1] high-entropy in any of the usually-available ways
[2] for any compression system actually deployed, as opposed to one contrived to match specifically the 'random' source
But if you take /dev/urandom you can get quite a bit more. On this system it is about 7Mbyte/s.
Does this mean that if I've got a server with no mouse/keyboard attached, /dev/random will block forever?
Logging into my slicehost server, and running cat /dev/random | hexdump -C seems to support this, more or less - only a few lines get output unless I start typing into the terminal - then it goes marginally faster.
http://www.idquantique.com/true-random-number-generator/prod...
http://www.gamesbyemail.com/dicegenerator
...among many others.
/dev/urandom supplements its entropy with a PRNG so that it never blocks..
tsuraan@macbeth ~ $ dd if=/dev/zero of=abigfile bs=1M count=1 seek=1000000
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00320282 s, 327 MB/s
tsuraan@macbeth ~ $ ls -lh abigfile
-rw-r--r-- 1 tsuraan tsuraan 977G Sep 16 11:18 abigfile
I probably wouldn't actually make it ~1TB, but that's the idea.