dded byte-based nonce and prng. bit-based versions of function commented out until they are made functional