From e05873f383e1b9c56e1a148828ad9a7610356915 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 9 Mar 2021 11:46:29 +0000 Subject: [PATCH] Use InvariantCulture for char.ToString() --- X10D/src/RandomExtensions/RandomExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D/src/RandomExtensions/RandomExtensions.cs b/X10D/src/RandomExtensions/RandomExtensions.cs index e738b62..5d23dab 100644 --- a/X10D/src/RandomExtensions/RandomExtensions.cs +++ b/X10D/src/RandomExtensions/RandomExtensions.cs @@ -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);