Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am setthase on github.
  • I am setthase (https://keybase.io/setthase) on keybase.
  • I have a public key whose fingerprint is BEBB DC26 75B6 0355 63AE E76D ED09 9E21 3B9D 80E2

To claim this, I am signing this object:

# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
// Here’s a 100% deterministic alternative to `Math.random`. Google’s V8 and
// Octane benchmark suites use this to ensure predictable results.
Math.random = (function() {
var seed = 0x2F6E2B1;
return function() {
// Robert Jenkins’ 32 bit integer hash function
seed = ((seed + 0x7ED55D16) + (seed << 12)) & 0xFFFFFFFF;
seed = ((seed ^ 0xC761C23C) ^ (seed >>> 19)) & 0xFFFFFFFF;
seed = ((seed + 0x165667B1) + (seed << 5)) & 0xFFFFFFFF;