Home

Util.Dif issue?

I wrote the following program and it seems to me that the method Util.Dif() doesn't work properly with the array.
Is this the case?

void Main()
{
var rna1 = GenerateRandomBytes(32);
var rna2 = RandomNumberGenerator.GetBytes(32);

new { Row = string.Join(", ", rna1) }.Dump();
new { Row = string.Join(", ", rna2) }.Dump();

Util.HorizontalRun(true, rna1, rna2).Dump();
Util.Dif(rna1, rna2).Dump();

}

public static byte[] GenerateRandomBytes(int length)
{
using var rng = RandomNumberGenerator.Create();
var randomBytes = new byte[length];
rng.GetBytes(randomBytes);
return randomBytes;
}

Sign In or Register to comment.