Implement endian conversion properly for blake2 and chacha

This doesn't really matter for the security of the PRNG, but it should
be fairly cheap compared to the rest of the PRNG, and it's nice not to
have so many caveats about "this isn't really chacha20/blake2".