{"ScriptPreparationCode":"class EntropyPool {\r\n #entropy; #index\r\n constructor(poolSize = 1024) {\r\n this.#entropy = new Uint32Array(poolSize)\r\n this.#index = 0\r\n crypto.getRandomValues(this.#entropy)\r\n }\r\n next() {\r\n const value = this.#entropy[this.#index\u002B\u002B]\r\n if (this.#index === this.#entropy.length) {\r\n crypto.getRandomValues(this.#entropy)\r\n this.#index = 0\r\n }\r\n return value\r\n }\r\n}\r\n\r\nconst pool = new EntropyPool()\r\n\r\nfunction random() {\r\n return pool.next() / 4294967296\r\n}","TestCases":[{"Name":"Math.random()","Code":"Math.random()","IsDeferred":false},{"Name":"random()","Code":"random()","IsDeferred":false}]}