I hereby claim:
- I am sakisk on github.
- I am sakisk (https://keybase.io/sakisk) on keybase.
- I have a public key ASAox08JjWffv0Z5IipGxTaHsPupmBVfcSv9ypzi1Wch-wo
To claim this, I am signing this object:
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
public static class SystemDateTime | |
{ | |
private static readonly Func<DateTime> DefaultUtcNow = () => DateTime.UtcNow; | |
private static Func<DateTime> _func = DefaultUtcNow; | |
public static DateTime UtcNow => _func(); | |
public static void Set(DateTime now) => _func = () => now; |
I hereby claim:
To claim this, I am signing this object:
using NodaTime; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Get now from system clock (this is an Instant) | |
var now = SystemClock.Instance.Now; |
public static class RandomHelper | |
{ | |
private static int _seedCounter = new Random().Next(); | |
[ThreadStatic] | |
private static Random _rng; | |
public static Random Instance | |
{ | |
get |