private static long CreateDeviceId(IBeaconConfiguration configuration, IPrnGenerator randomGenerator) { if (configuration.PrivacyConfiguration.IsDeviceIdSendingAllowed) { return(configuration.OpenKitConfiguration.DeviceId); } return(randomGenerator.NextPositiveLong()); }
public FixedPrnGenerator(IPrnGenerator rng) { randomLongNumber = rng.NextPositiveLong(); randomIntNumber = rng.NextPositiveInt(); }
public FixedPrnGenerator(IPrnGenerator rng) { randomLongNumber = rng.NextPositiveLong(); randomPercentage = rng.NextPercentageValue(); }