/**1* @license2* Copyright 2014 The Emscripten Authors3* SPDX-License-Identifier: MIT4*/56var MAGIC = 0;7Math.random = () => {8MAGIC = Math.pow(MAGIC + 1.8912, 3) % 1;9return MAGIC;10};1112var TIME = 10000;13function deterministicNow() {14return TIME++;15}1617Date.now = deterministicNow;1819// Setting performance.now to deterministicNow doesn't work so we instead20// use a helper function in parseTools (getPerformanceNow()) to call it21// directly.22// if (typeof performance == 'object') performance.now = Date.now;2324Module['thisProgram'] = 'thisProgram'; // for consistency between different builds than between runs of the same build2526function hashMemory(id) {27var ret = 0;28var len = _sbrk(0);29for (var i = 0; i < len; i++) {30ret = (ret*17 + HEAPU8[i])|0;31}32return id + ':' + ret;33}3435function hashString(s) {36var ret = 0;37for (var i = 0; i < s.length; i++) {38ret = (ret*17 + s.charCodeAt(i))|0;39}40return ret;41}42434445