Hacker News new | ask | show | jobs
by ghoul2 26 days ago
_In general_ this would result in zero compression. The exact seed needed to be able to generate, say a 1KB file exactly, will in-general itself be ~1KB large.

Conversely, if you have say a 32-bit seed, then by definition you can only generate 2^32 different files (and their prefixes, if a length is also included) - meaning you CAN "compress" all possible 4-byte files into "their" 32-bit seed. Thats it.

Bottomline: this will _in-general_ not result in any compression at all.