Forgot to initialize const string array

This commit is contained in:
yankejustin 2015-05-21 12:20:45 -04:00
parent d100c47091
commit 8cbab66bf8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{