rndHex is now an integer to be compatible with the other implementations