Fixes some generation issues with randomness in the getOctet function