Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -38,13 +38,9 @@ namespace Server {
}
}
public static bool IsHardwareRNG {
get { return _Random is IHardwareRNG; }
}
public static bool IsHardwareRNG => _Random is IHardwareRNG;
public static Type Type {
get { return _Random.GetType(); }
}
public static Type Type => _Random.GetType();
public static int Next(int c) {
return _Random.Next(c);
@ -177,7 +173,7 @@ namespace Server {
lock (_sync) {
CheckSwap(1);
return _Working[_Index++];
}
}
}
public void NextBytes(byte[] b) {
@ -510,7 +506,7 @@ namespace Server {
return;
_filled.WaitOne();
byte[] b = _Working;
_Working = _Buffer;
_Buffer = b;
@ -603,4 +599,4 @@ namespace Server {
Success = 1,
}
}
}