Improved OpaqueGenerater#getNextValue