Skip to content

Releases: sitano/nreseed

v0.0.2 fix ClockNow(monotonic) + addin ticks() for crypo reseed

08 Jun 13:36
Compare
Choose a tag to compare

node.js reseeder for PRNGs for checkpointed processes.

Addon exposes original Node.js PRNG algorithm (xor128+ + murmur3(seed)). It also reinstalls crypto api entropy.

  const seeder = require('nreseed');

  const a = new seeder.PRNG();
  const b = new seeder.PRNG(0);

  a.random();
  b.random();

  b.setSeed(1);
  b.random();

  b.reseed();
  b.random();

  Math.random = function() {
    return b.random();
  };

v0.0.1 initial release

07 Jun 15:14
Compare
Choose a tag to compare

reseed() and PRNG() + random(), setSeed(), reseed()