Skip to content

Instantly share code, notes, and snippets.

View nvstrs's full-sized avatar

Martin nvstrs

View GitHub Profile
@nvstrs
nvstrs / potluck_poc.js
Created October 28, 2016 09:50
Discover winning wager sizes for potluckgame.com
const { createHmac } = require("crypto")
const isaac = require("isaac")
const MIN_WAGER = 100
const MAX_WAGER = 25000
function createHMACHash(key, data) {
const hmac = createHmac("sha256", key)
hmac.update(data)