Exemplo n.º 1
0
        public void TestBase36Formatting()
        {
            var rnd = new Random();
            var buf = new byte[8];

            rnd.NextBytes(buf);
            var val    = BitConverter.ToUInt64(buf.AsSpan());
            var result = Base36.ToBase36(val);

            Console.WriteLine($@"Base36 of {val} is {result} with {result.Length} characters");
        }