Fixed Security Hotspot reported by SonarQube.

This commit is contained in:
Akshay Joshi
2022-08-14 07:09:45 +05:30
parent 6179b216c5
commit 1e94c3bd81
9 changed files with 17 additions and 25 deletions

View File

@@ -427,7 +427,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
setDebuggerArgs(funcArgsData, funcObj, myObj);
debuggerArgsSchema.current = new DebuggerArgumentSchema();
setLoadArgs(Math.floor(Math.random() * 1000));
setLoadArgs(crypto.getRandomValues(new Uint16Array(1)));
})
.catch(() => {
Notify.alert(
@@ -485,7 +485,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
setTimeout(() => {
/* Reload the debugger arguments */
setLoaderText('');
setLoadArgs(Math.floor(Math.random() * 1000));
setLoadArgs(crypto.getRandomValues(new Uint16Array(1)));
/* Disable debug button */
setIsDisableDebug(true);
}, 100);