1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:58:49 +00:00

Use InvariantCulture for char.ToString()

This commit is contained in:
Oliver Booth 2021-03-09 11:46:29 +00:00
parent 0d00dd62e8
commit e05873f383

View File

@ -209,7 +209,7 @@ namespace X10D.RandomExtensions
if (length == 1)
{
return source[random.Next(0, source.Count)].ToString();
return source[random.Next(0, source.Count)].ToString(CultureInfo.InvariantCulture);
}
var builder = new StringBuilder(length);