Last active
June 20, 2018 14:37
-
-
Save JoeM-RP/b0bf7da7aadc7eac7c3dd2f75bbc7f9f to your computer and use it in GitHub Desktop.
EddystoneGenerator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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