UNPKG

cryptomancy-nonce

Version:

nonce helpers for cryptomancy, the toy crypto suite

17 lines (14 loc) 289 B
var A = new Array(20).fill(0); var inc = function (N) { var l = N.length; while (--l >= 0) { if (N[l] !== 1) { return void N[l]++; } if (l === 0) { return true; } N[l] = 0; } }; do { console.log(A.join("")); } while (!inc(A));