check if hashgenerator is injected