Add test mode : if params[:test], hash is set to a secure random hex.