Skip to content

Instantly share code, notes, and snippets.

View copernicus365's full-sized avatar

Nicholas Petersen copernicus365

  • Huber Heights, Ohio
View GitHub Profile
@copernicus365
copernicus365 / ssl-alpn-test.txt
Created March 30, 2018 02:02 — forked from bobuva/ssl-alpn-test.txt
SSL ALPN Negotiation with .NET Core 2.1 Preview
using System;
using System.Threading;
using System.Collections.Generic;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
namespace ssltest
@copernicus365
copernicus365 / CryptoRandom.cs
Created November 8, 2017 20:45 — forked from niik/CryptoRandom.cs
Buffered CryptoRandom implementation based on Stephen Toub and Shawn Farkas' CryptoRandom
/*
* Original version by Stephen Toub and Shawn Farkas.
* Random pool and thread safety added by Markus Olsson (freakcode.com).
*
* Original source: http://msdn.microsoft.com/en-us/magazine/cc163367.aspx
*
* Some benchmarks (2009-03-18):
*
* Results produced by calling Next() 1 000 000 times on my machine (dual core 3Ghz)
*