Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Last active June 20, 2018 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/b0bf7da7aadc7eac7c3dd2f75bbc7f9f to your computer and use it in GitHub Desktop.
Save JoeM-RP/b0bf7da7aadc7eac7c3dd2f75bbc7f9f to your computer and use it in GitHub Desktop.
EddystoneGenerator
using System;
namespace EddystoneGenerator
{
class MainClass
{
public static void Main(string[] args)
{
Random random = new Random();
Console.Write("Enter the amout of IDs to generate:");
var count = int.Parse(Console.ReadLine());
var NID = new byte[10];
random.NextBytes(NID);
Console.WriteLine($"NID: AF-77-4F-35-18-29-94-26-A4-56");
for (int i = 0; i < count; i ++)
{
var BID = new byte[4];
random.NextBytes(BID);
Console.WriteLine($"BID: 00-00-{BitConverter.ToString(BID)}");
}
Console.WriteLine("Complete");
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment