Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP JoeM-RP/Program.cs
Last active Jun 20, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.