Use InvariantCulture for char.ToString()

This commit is contained in:
Oliver Booth 2021-03-09 11:46:29 +00:00
parent 0d00dd62e8
commit e05873f383
1 changed files with 1 additions and 1 deletions

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);