new framework file: lib/core/rng.js