mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Security Hotspot reported by SonarQube.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user