mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 01:54:32 +00:00
test(perf): reduce security audit and guardrail overhead
This commit is contained in:
@@ -225,7 +225,11 @@ describe("temp path guard", () => {
|
||||
if (hasDynamicTmpdirJoin(file.source)) {
|
||||
offenders.push(relativePath);
|
||||
}
|
||||
if (WEAK_RANDOM_SAME_LINE_PATTERN.test(file.source)) {
|
||||
if (
|
||||
file.source.includes("Date.now") &&
|
||||
file.source.includes("Math.random") &&
|
||||
WEAK_RANDOM_SAME_LINE_PATTERN.test(file.source)
|
||||
) {
|
||||
weakRandomMatches.push(relativePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user