Skip to content
Snippets Groups Projects
  • Chartreux 'init' value test code

    let testV = Math.floor(Math.random() * 4294967295)
    let filt = function (v) {
      v = v.toString(16); if (v.length < 8) {
        v = '0'.repeat(8 - v.length) + v
      } return v.toString(16);
    }
    let mod = testV - (testV % 1051)
    let nomod = testV + !(testV % 1051)
    console.log("mod", filt(mod), "not mod", filt(nomod), "delta", nomod - mod)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment