Hash generation on init