FNavLinkId::GenerateUniqueId

Helper function: returns unique ID number for custom links.