From 8cbab66bf8a8493fb90e33aa95651a5c4f91c9af Mon Sep 17 00:00:00 2001 From: yankejustin Date: Thu, 21 May 2015 12:20:45 -0400 Subject: [PATCH] Forgot to initialize const string array --- Server/Core/Helper/Helper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Core/Helper/Helper.cs b/Server/Core/Helper/Helper.cs index d37fbbb8..6350e4e8 100644 --- a/Server/Core/Helper/Helper.cs +++ b/Server/Core/Helper/Helper.cs @@ -9,7 +9,7 @@ public static class Helper { private const string CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; private static readonly Random _rnd = new Random(Environment.TickCount); - private const string[] sizes = { "B", "KB", "MB", "GB" }; + private const string[] sizes = new string[] { "B", "KB", "MB", "GB" }; public static string GetRandomFilename(int length, string extension) {