[FOLD] Tidying, unit test and prng_hasher