I been looking at ways to compress data so it can be distributed easily by making it as small as possible as long as the random number generator is consistent through all devices.
It will be computationally expensive to compress but not as expensive to decompress.
What I do is I take all the text/bytes of a file and then create a (char|byte)sheet that contains each unique character that is in the file.
After that, I start at 0 and increment by 1 for the seed.
I use Python's random library and seed it with the int.
I use random.choices((char|byte)sheet, k=length)
.
For each seed, I have two paremeters.
A maximum and a minimum for the length of generated chars/bytes.
Uhhh....
Now that I'm writing this I'm starting to see where some of this is falling apart. I'll post the code for now I got some rewriting to do! For now, here's the progress I had!
main.py
worker.py
YOU'RE HIRED!