An implementation of an OTP generator