Function generateActorHash