{"ScriptPreparationCode":"var saltVal = crypto.getRandomValues(new Uint8Array(16));\r\n\r\nfunction arrayBufferToHexString(bytes) {\r\n bytes = new Uint8Array(bytes);\r\n var hex = [];\r\n for (let i = 0; i \u003C bytes.length; i\u002B\u002B) {\r\n hex[i] = (\u00220\u0022 \u002B bytes[i].toString(16)).slice(-2);\r\n }\r\n return hex.join(\u0022\u0022);\r\n}\r\n\r\nfunction bytesToHexString(bytes) {\r\n bytes = new Uint8Array(bytes);\r\n var hexBytes = [];\r\n for (var i = 0; i \u003C bytes.length; i\u002B\u002B) {\r\n hexBytes.push((\u00220\u0022 \u002B bytes[i].toString(16)).slice(-2));\r\n }\r\n return hexBytes.join(\u0022\u0022);\r\n}\r\n","TestCases":[{"Name":"directly set","Code":"arrayBufferToHexString(saltVal);","IsDeferred":false},{"Name":"push values","Code":"bytesToHexString(saltVal)","IsDeferred":false}]}