Is there anything in the standard python library to do encryption, instead of hashing as used here? (I did not find such but that may just be ignorance.)

Encryption would really make more sense for this. What I am trying to do, is take the state array, and scramble it in some deterministic way from the integer `rank`. Making a key out of `rank`, then encrypting the state array with this key, naturally resulting in an output the same size as the input, then using this scrambled state, would be better than the approach I used here.

Here, I am using the hash algorithm on the `rank`, making a uint32 out of the digest, then xor-ing it with all of the state array. I don't actually care about the sense of a digest. I think the way I have implemented this here is ok for now, but it does seem clumsy.