示例#1
0
        private static long CreateDeviceId(IBeaconConfiguration configuration, IPrnGenerator randomGenerator)
        {
            if (configuration.PrivacyConfiguration.IsDeviceIdSendingAllowed)
            {
                return(configuration.OpenKitConfiguration.DeviceId);
            }

            return(randomGenerator.NextPositiveLong());
        }
示例#2
0
 public FixedPrnGenerator(IPrnGenerator rng)
 {
     randomLongNumber = rng.NextPositiveLong();
     randomIntNumber  = rng.NextPositiveInt();
 }
示例#3
0
 public FixedPrnGenerator(IPrnGenerator rng)
 {
     randomLongNumber = rng.NextPositiveLong();
     randomPercentage = rng.NextPercentageValue();
 }