by tomjen3 · 15y ago · 0 comments
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.
/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.