Skip to content

Commit

Permalink
Base64 library tests: use full encoding map (#71006)
Browse files Browse the repository at this point in the history
  • Loading branch information
a74nh committed Jun 22, 2022
1 parent 305144e commit 250e1b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ internal static void InitializeDecodableBytes(Span<byte> bytes, int seed = 100)
var rnd = new Random(seed);
for (int i = 0; i < bytes.Length; i++)
{
int index = (byte)rnd.Next(0, s_encodingMap.Length - 1); // Do not pick '='
int index = (byte)rnd.Next(0, s_encodingMap.Length);
bytes[i] = s_encodingMap[index];
}
}
Expand Down

0 comments on commit 250e1b0

Please sign in to comment.