mirror of https://github.com/quasar/Quasar.git
Must use static readonly instead of const
Instead of using const, we must use static readonly...
This commit is contained in:
parent
8cbab66bf8
commit
9e175378fc
|
@ -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 = new string[] { "B", "KB", "MB", "GB" };
|
||||
private static readonly string[] sizes = new string[] { "B", "KB", "MB", "GB" };
|
||||
|
||||
public static string GetRandomFilename(int length, string extension)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue