UNPKG

uupaa.random.js

Version:

Random function(Xorshift implement)

29 lines (20 loc) 742 B
// Random test onmessage = function(event) { self.unitTest = event.data; // { message, setting: { secondary, baseDir } } if (!self.console) { // polyfill WebWorkerConsole self.console = function() {}; self.console.dir = function() {}; self.console.log = function() {}; self.console.warn = function() {}; self.console.error = function() {}; self.console.table = function() {}; } importScripts("../lib/WebModule.js"); // publish to global WebModule.publish = true; importScripts("wmtools.js"); importScripts("../lib/Random.js"); importScripts("../release/Random.w.min.js"); importScripts("testcase.js"); self.postMessage(self.unitTest); };