// Token: 0x06000315 RID: 789 RVA: 0x00010B34 File Offset: 0x0000ED34
        public static PartitionId SelectAccountPartitionForNewTenant(string name)
        {
            PartitionId[] array = ADAccountPartitionLocator.GetAllAccountPartitionIdsEnabledForProvisioning();
            if (array == null || array.Length == 0)
            {
                return(null);
            }
            if (array.Length == 1)
            {
                return(array[0]);
            }
            int num  = Math.Abs(name.ToUpperInvariant().GetHashCode());
            int num2 = num % array.Length;

            return(array[num2]);
        }