Generated by scripts/classify-silent-random.py from
docs/releases/p2/silent-random-candidates.md (V1-P2-3400).
Each unannotated Math.random() site has been assigned exactly one of:
REPLACE (real computation required), ALLOW (jitter/shuffle/ID/
procedural), or DELETE (dead code). The classification rule that fired is
recorded in the Rule column for auditability; rules are applied in the order
documented under "Rule Reference" below — first match wins.
Summary#
| Class | Count |
|---|---|
| REPLACE | 735 |
| ALLOW | 6219 |
| DELETE | 0 |
| Total | 6954 |
By rule#
| Rule | Class | Count |
|---|---|---|
id-token-toString |
ALLOW | 2411 |
default-allow |
ALLOW | 1996 |
analytics-fake-metric |
REPLACE | 641 |
shuffle-sort-key |
ALLOW | 388 |
procedural-generation-path |
ALLOW | 357 |
token-char-pick |
ALLOW | 293 |
random-pick-from-array |
ALLOW | 266 |
comment-reference |
ALLOW | 139 |
gaussian-sampling |
ALLOW | 106 |
timer-jitter |
ALLOW | 92 |
seed-or-fixture-script |
ALLOW | 73 |
fake-confidence-score |
REPLACE | 67 |
id-suffix-template |
ALLOW | 43 |
cv-fake-pipeline-metric |
REPLACE | 27 |
animation-visual-jitter |
ALLOW | 25 |
test-fixture-file |
ALLOW | 23 |
probability-gate |
ALLOW | 5 |
rng-factory |
ALLOW | 2 |
Rule Reference#
Rules are evaluated top-to-bottom; first match wins. A site that does not match
any specific rule falls to the default-allow rule and is scheduled for
per-line annotation review under V1-P2-3403.
comment-reference→ ALLOW (HIGH) — hit is inside a JSDoc/inline comment, not executable code.id-token-toString→ ALLOW (HIGH) —Math.random().toString(36|16)to mint a non-secret ID/token suffix.token-char-pick→ ALLOW (HIGH) — random index into acharsalphabet to assemble a non-secret token.shuffle-sort-key→ ALLOW (HIGH) —Math.random() - 0.5Fisher- Yates-style sort key.rng-factory→ ALLOW (HIGH) — RNG abstraction wrapper exposing Math.random as a default.timer-jitter→ ALLOW (HIGH) — retry/backoff or scheduling jitter.probability-gate→ ALLOW (HIGH) —Math.random() < probabilitystochastic gating against a configured threshold.fake-confidence-score→ REPLACE (HIGH) —confidence:/score:/ etc. assigned from Math.random; should come from real model output.analytics-fake-metric→ REPLACE (HIGH) — analytics/BI/compliance route synthesizes a metric via Math.random.procedural-generation-path→ ALLOW (MEDIUM) — file in a procedural-content surface (svc-metaverse, star-map, virtual-rooms environmental FX, character/scene generators).random-pick-from-array→ ALLOW (MEDIUM) — random array index for shuffle/sample/diversification.seed-or-fixture-script→ ALLOW (MEDIUM) — seed/fixture/script context, not production runtime.test-fixture-file→ ALLOW (HIGH) — file in__tests__/,__fixtures__/,__mocks__/,storybook/— test scaffolding.id-suffix-template→ ALLOW (HIGH) — random integer suffix in a template-string ID composition (${Date.now()}-${Math.floor(...)}).gaussian-sampling→ ALLOW (HIGH) — uniform input feeds a Box- Muller / Gaussian transform.animation-visual-jitter→ ALLOW (HIGH) — animation/particle/ effect surface; randomness drives visual variety.cv-fake-pipeline-metric→ REPLACE (HIGH) — Aja CV pipeline file fabricating scene/pose/motion metrics; must come from real CV.default-allow→ ALLOW (LOW) — fallthrough; per-line review will occur during V1-P2-3403 annotation pass.
By Domain#
| Domain | REPLACE | ALLOW | DELETE | Total |
|---|---|---|---|---|
libs/aphrodite |
12 | 947 | 0 | 959 |
libs/iris |
30 | 665 | 0 | 695 |
apps/aphrodite |
624 | 18 | 0 | 642 |
apps/lilith |
8 | 609 | 0 | 617 |
libs/psyche |
4 | 534 | 0 | 538 |
apps/oshun |
2 | 428 | 0 | 430 |
libs/yemaya |
0 | 387 | 0 | 387 |
libs/veritas |
1 | 212 | 0 | 213 |
libs/oya |
2 | 200 | 0 | 202 |
libs/isis |
0 | 155 | 0 | 155 |
apps/hathor |
0 | 128 | 0 | 128 |
libs/aja |
0 | 128 | 0 | 128 |
libs/nous |
0 | 125 | 0 | 125 |
apps/nyx |
0 | 110 | 0 | 110 |
apps/veritas |
0 | 108 | 0 | 108 |
libs/kuanyin |
0 | 107 | 0 | 107 |
scripts/lilith |
1 | 92 | 0 | 93 |
libs/maat |
0 | 88 | 0 | 88 |
libs/hathor |
0 | 76 | 0 | 76 |
libs/bellona |
0 | 75 | 0 | 75 |
apps/aja |
27 | 45 | 0 | 72 |
libs/shared |
0 | 58 | 0 | 58 |
libs/euterpe |
0 | 53 | 0 | 53 |
libs/neith |
0 | 53 | 0 | 53 |
apps/yemaya |
0 | 52 | 0 | 52 |
libs/mnemosyne |
1 | 49 | 0 | 50 |
yaa/packages |
21 | 26 | 0 | 47 |
libs/metis |
0 | 45 | 0 | 45 |
apps/brigid |
0 | 41 | 0 | 41 |
libs/freya |
0 | 41 | 0 | 41 |
libs/demeter |
0 | 40 | 0 | 40 |
libs/brigid |
0 | 39 | 0 | 39 |
libs/nyx |
0 | 36 | 0 | 36 |
libs/aglaea |
0 | 30 | 0 | 30 |
apps/iris |
0 | 28 | 0 | 28 |
libs/cybele |
0 | 26 | 0 | 26 |
libs/maya |
0 | 26 | 0 | 26 |
apps/arete |
1 | 24 | 0 | 25 |
libs/tara |
0 | 24 | 0 | 24 |
apps/demeter |
0 | 23 | 0 | 23 |
apps/hestia |
0 | 22 | 0 | 22 |
libs/hestia |
0 | 21 | 0 | 21 |
libs/lilith |
0 | 21 | 0 | 21 |
libs/oshun |
0 | 18 | 0 | 18 |
libs/airmid |
0 | 15 | 0 | 15 |
apps/tara |
0 | 12 | 0 | 12 |
libs/lakshmi |
0 | 12 | 0 | 12 |
libs/meditation |
0 | 12 | 0 | 12 |
libs/saraswati |
1 | 11 | 0 | 12 |
apps/isis |
0 | 11 | 0 | 11 |
apps/maat |
0 | 11 | 0 | 11 |
apps/psyche |
0 | 10 | 0 | 10 |
libs/arete |
0 | 9 | 0 | 9 |
libs/nisaba |
0 | 9 | 0 | 9 |
serwaa/services |
0 | 9 | 0 | 9 |
apps/asase |
0 | 8 | 0 | 8 |
libs/sophia |
0 | 8 | 0 | 8 |
apps/metis |
0 | 5 | 0 | 5 |
docs/training |
0 | 5 | 0 | 5 |
libs/contracts |
0 | 5 | 0 | 5 |
apps/sophia |
0 | 4 | 0 | 4 |
libs/aje |
0 | 4 | 0 | 4 |
libs/asase |
0 | 4 | 0 | 4 |
libs/kalika |
0 | 4 | 0 | 4 |
testing/utils |
0 | 4 | 0 | 4 |
apps/freya |
0 | 3 | 0 | 3 |
libs/seshat |
0 | 3 | 0 | 3 |
apps/bellona |
0 | 2 | 0 | 2 |
apps/cybele |
0 | 2 | 0 | 2 |
tests/integration |
0 | 2 | 0 | 2 |
libs/galatea |
0 | 1 | 0 | 1 |
minerva/minerva |
0 | 1 | 0 | 1 |
Per-Candidate Decisions (high/medium-confidence rows)#
Rows from rules other than default-allow are listed below grouped by file.
Default-allow rows (each marked LOW confidence) are listed in the appendix at
the end with file:line only — they all carry the same rule and rationale and
require per-line random:legitimate <reason> review under V1-P2-3403.
apps/aja/cli/src/commands/inspect.ts#
- L341 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
jitterScore: Math.random() * 0.05, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L342 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
footSlidingDistance: Math.random() * 3, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L343 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
boneLengthVariance: Math.random() * 0.03, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L344 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
jointAngleSmoothness: 0.8 + Math.random() * 0.2, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L345 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
physicalPlausibility: 0.75 + Math.random() * 0.25, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
apps/aja/svc-motion-ai/src/live-motion-capture/live-avatar-driving.ts#
- L516 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.blinkTimer = avgInterval + (Math.random() - 0.5) * avgInterval * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/aja/svc-motion-ai/src/live-motion-capture/realtime-pose-estimation.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndet*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1163 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
const numPeople = Math.random() > 0.3 ? 1 : Math.random() > 0.7 ? 2 : 0; - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L1166 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const baseX = 0.2 + p * 0.4 + (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1167 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const baseY = 0.3 + (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1194 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L1201 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
await new Promise((resolve) => setTimeout(resolve, 15 + Math.random() * 20)); - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L1253 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = () => (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1259 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L1260 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
visible: Math.random() > 0.1, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
apps/aja/svc-motion-ai/src/live-motion-capture/webcam-capture.ts#
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnframe*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-motion-ai/src/motion-enhancement/motion-synthesis.ts#
- L183 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L184 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L2647 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
frame.rootPosition[0] + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2650 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
: frame.rootPosition[1] + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2651 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
frame.rootPosition[2] + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2657 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
noisyRotations[j] = frame.jointRotations[j] + (Math.random() - 0.5) * noiseScale * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/aja/svc-motion-ai/src/motion-enhancement/types.ts#
- L1528 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmotion*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as MotionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1535 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndiff*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as DiffusionSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1542 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstyle*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as StyleId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1549 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpipeline*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as EnhancementPipelineId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1556 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnphysics*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as PhysicsSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-motion-ai/src/video-to-motion/video-to-motion-service.ts#
- L409 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnjob*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-reference-video/src/annotation.ts#
- L449 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ann*${data.type}*${Date.now()}_${Math.random().toString(36).substr(2, 9)}as AnnotationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L708 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const segmentId =seg*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as SegmentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L741 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return colors[Math.floor(Math.random() * colors.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1168 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =track*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1294 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =clip*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as ClipId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-reference-video/src/collaboration.ts#
- L638 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ws*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as WorkspaceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L888 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =inv*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L982 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =cmt*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as CommentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1230 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =rev*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as ReviewId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1428 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =tmpl*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1469 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =asn*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AssignmentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1654 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId =batch*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1728 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:act*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1806 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:notif*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-reference-video/src/metadata-extraction.ts#
- L526 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
const duration = 120 + Math.random() * 300; // 2-7 minutes - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
apps/aja/svc-reference-video/src/scene-detection.ts#
- L263 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
stats[frame].avgLuminance = Math.random() * 128 + 64; - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L284 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
hue: (baseHue + Math.random() * 5) % 360, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L285 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
saturation: 0.5 + Math.random() * 0.1, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L286 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
value: 0.5 + Math.random() * 0.1, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L289 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
avgLuminance: baseLum + Math.random() * 10 - 5, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L290 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
edgeDensity: 0.3 + Math.random() * 0.2, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L291 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
motionMagnitude: Math.random() * 10, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L321 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
let currentFrame = avgSceneLength + Math.floor(Math.random() * 100); - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L324 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
currentFrame += avgSceneLength + Math.floor(Math.random() * 100 - 50); - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L726 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
confidence: 0.85 + Math.random() * 0.15, // Simulated confidence - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L853 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
const actionLength = 60 + Math.floor(Math.random() * 120); // 2-6 seconds at 30fps - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L859 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
label: actionLabels[Math.floor(Math.random() * actionLabels.length)], - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L860 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L911 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
quality: 0.6 + Math.random() * 0.4, - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L951 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
const restLength = 90 + Math.floor(Math.random() * 60); // 3-5 seconds - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
- L958 —
REPLACE(HIGH, rulecv-fake-pipeline-metric)- Code:
currentFrame += restLength + 300 + Math.floor(Math.random() * 200); - Rationale: File is in an Aja CV pipeline (scene-detection / motion / inspect / metadata) where Math.random fabricates frame statistics, pose visibility, or quality scores; must come from real OpenCV/MediaPipe/etc. output.
- Code:
apps/aja/svc-reference-video/src/types.ts#
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvid*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as VideoId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnseg*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as SegmentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnann*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as AnnotationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnclip*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as ClipId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncat*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as CategoryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntag*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as TagId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L87 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnws*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as WorkspaceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L91 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncmt*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as CommentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrev*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as ReviewId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L99 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasn*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as AssignmentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnver*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as VersionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L107 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnemb*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as EmbeddingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aja/svc-reference-video/src/video-ingestion.ts#
- L769 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnupload*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/admin-bi-dashboard/src/routes/compliance.ts#
- L55 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const ageVerificationScore = 92 + Math.random() * 6; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L56 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const moderationScore = 88 + Math.random() * 8; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L57 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const record2257Score = 95 + Math.random() * 4; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L58 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const gdprScore = 90 + Math.random() * 7; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L206 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalVerifications = 5000 + Math.floor(Math.random() * 2000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L207 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const successfulVerifications = Math.floor(totalVerifications * (0.92 + Math.random() * 0.05)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L209 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
(totalVerifications - successfulVerifications) * (0.6 + Math.random() * 0.3) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L213 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgVerificationTime = 45 + Math.random() * 30; // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L225 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(totalVerifications * m.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L226 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
successRate: 0.88 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L227 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTime: m.avgTime * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L241 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
verifications: Math.floor(totalVerifications * p.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L242 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
successRate: 0.9 + Math.random() * 0.08, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L243 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgCost: p.cost * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L244 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTime: 30 + Math.random() * 60, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L259 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
verifications: Math.floor(totalVerifications * (0.05 + Math.random() * 0.25)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L260 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
successRate: 0.88 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L273 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(successfulVerifications * a.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L351 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalContent = 500000 + Math.floor(Math.random() * 200000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L352 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const reviewedContent = Math.floor(totalContent * (0.15 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L353 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const flaggedContent = Math.floor(reviewedContent * (0.08 + Math.random() * 0.04)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L354 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const removedContent = Math.floor(flaggedContent * (0.6 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L355 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const appealedContent = Math.floor(removedContent * (0.15 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L356 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const restoredContent = Math.floor(appealedContent * (0.2 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L357 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgReviewTime = 30 + Math.random() * 60; // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L358 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const falsePositiveRate = 0.02 + Math.random() * 0.03; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L374 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const count = Math.floor(flaggedContent * v.share * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L375 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const actionsTaken = Math.floor(count * (0.7 + Math.random() * 0.25)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L376 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const appealed = Math.floor(actionsTaken * (0.1 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L377 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const upheld = Math.floor(appealed * (0.75 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L399 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const reviewed = Math.floor(reviewedContent * ct.share * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L400 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const flagged = Math.floor(reviewed * (0.05 + Math.random() * 0.05)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L401 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const removed = Math.floor(flagged * (0.6 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L414 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reviewed: Math.floor((reviewedContent / 20 / (i + 1)) * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L415 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
accuracy: 0.92 + Math.random() * 0.06, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L416 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTime: 20 + Math.random() * 40, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L422 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const aiReviewed = Math.floor(totalContent * (0.95 + Math.random() * 0.04)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L425 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
aiActioned: Math.floor(aiReviewed * (0.02 + Math.random() * 0.01)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L426 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
humanEscalated: Math.floor(aiReviewed * (0.03 + Math.random() * 0.02)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L427 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
accuracy: 0.94 + Math.random() * 0.04, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L428 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgConfidence: 0.85 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L434 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
resolved: Math.floor(appealedContent * (0.85 + Math.random() * 0.1)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L435 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
pending: Math.floor(appealedContent * (0.1 + Math.random() * 0.05)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L436 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
upheld: Math.floor(appealedContent * (0.65 + Math.random() * 0.15)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L438 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgResolutionTime: 24 + Math.random() * 48, // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L508 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalCreators = 8000 + Math.floor(Math.random() * 2000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L509 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const compliantCreators = Math.floor(totalCreators * (0.94 + Math.random() * 0.04)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L510 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const pendingVerification = Math.floor(totalCreators * (0.02 + Math.random() * 0.02)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L514 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgRecordAge = 180 + Math.random() * 180; // days - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L525 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(recordsOnFile * s.percentage * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L538 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const valid = Math.floor(count * (0.92 + Math.random() * 0.06)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L539 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const expiringSoon = Math.floor(count * (0.03 + Math.random() * 0.02)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L558 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(recordsOnFile * e.percentage * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L567 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
result: (i === 0 ? 'passed' : Math.random() > 0.2 ? 'passed' : 'warning') as - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L571 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
findings: Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L572 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
resolved: Math.floor(Math.random() * 3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L597 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgRetrievalTime: 2.5 + Math.random() * 2, // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L642 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalDSR = 150 + Math.floor(Math.random() * 100); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L651 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgResponseTime: 5 + Math.random() * 10, // days - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L652 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
onTimeRate: 0.95 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L656 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 200000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L659 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
consentGiven: Math.floor(totalUsers * (0.85 + Math.random() * 0.1)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L660 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
consentWithdrawn: Math.floor(totalUsers * (0.02 + Math.random() * 0.02)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L661 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
consentPending: Math.floor(totalUsers * (0.05 + Math.random() * 0.03)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L670 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
consented: Math.floor(totalUsers * p.rate * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L671 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
declined: Math.floor(totalUsers * (1 - p.rate) * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L672 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
rate: p.rate * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L678 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: Math.floor(Math.random() * 3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L679 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
resolved: Math.floor(Math.random() * 2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L680 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
pending: Math.floor(Math.random() * 2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L681 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reportedToAuthority: Math.floor(Math.random() * 2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L682 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reportedToSubjects: Math.floor(Math.random() * 1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L683 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgDetectionTime: 2 + Math.random() * 4, // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L684 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgNotificationTime: 24 + Math.random() * 24, // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L689 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activitiesDocumented: 45 + Math.floor(Math.random() * 15), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L690 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
dpiaRequired: 8 + Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L691 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
dpiaCompleted: 7 + Math.floor(Math.random() * 4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L692 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
internationalTransfers: 5 + Math.floor(Math.random() * 3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L693 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
validMechanisms: 5 + Math.floor(Math.random() * 2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L698 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
categoriesTracked: 25 + Math.floor(Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L699 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
compliantCategories: 23 + Math.floor(Math.random() * 8), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L700 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
dataDeleted: 50000 + Math.floor(Math.random() * 30000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L701 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
dataArchived: 100000 + Math.floor(Math.random() * 50000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L702 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
overRetained: Math.floor(Math.random() * 5000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L756 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const exportId =export*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L791 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const isCompleted = Math.random() > 0.3; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L802 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
fileSize: isCompleted ? 1024 * 1024 * (5 + Math.random() * 10) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L803 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
recordCount: isCompleted ? 10000 + Math.floor(Math.random() * 5000) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L825 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exportId:export*${Date.now() - i * 86400000}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L832 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
fileSize: i > 0 ? 1024 * 1024 * (5 + Math.random() * 10) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L833 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
recordCount: i > 0 ? 10000 + Math.floor(Math.random() * 5000) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/admin-bi-dashboard/src/routes/content.ts#
- L56 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalStreams = 15000 + Math.floor(Math.random() * 5000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L57 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgStreamDuration = 2.5 + Math.random() * 2; // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L59 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgViewers = 50 + Math.floor(Math.random() * 100); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L66 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevStreams = totalStreams * (0.88 + Math.random() * 0.1); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L67 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevHours = totalHours * (0.85 + Math.random() * 0.12); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L68 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevAvgViewers = avgViewers * (0.9 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L92 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgBitrate: 5000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L94 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
bufferingRate: 0.01 + Math.random() * 0.02, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L95 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgStartupTime: 1.5 + Math.random() * 1.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L154 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalStreams = 15000 + Math.floor(Math.random() * 5000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L155 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalViewers = 500000 + Math.floor(Math.random() * 200000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L156 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalHours = 50000 + Math.floor(Math.random() * 20000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L157 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = 500000 + Math.random() * 300000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L160 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const streams = Math.floor(totalStreams * cat.share * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L161 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const viewers = Math.floor(totalViewers * cat.share * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L162 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const viewingHours = totalHours * cat.share * (0.85 + Math.random() * 0.3); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L163 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const revenue = totalRevenue * cat.share * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L165 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const peakViewers = avgViewers * (3 + Math.random() * 5); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L167 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevViewers = viewers * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L191 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
growthRate: e.growthRate * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L192 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
newCreators: 50 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L193 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
momentum: 0.6 + Math.random() * 0.4, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L203 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
declineRate: d.declineRate * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L277 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const peakViewers = Math.floor((50000 / (i + 1)) * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L278 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgViewers = Math.floor(peakViewers * (0.4 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L279 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const duration = 2 + Math.random() * 6; // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L280 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const revenue = avgViewers * duration * (0.5 + Math.random() * 1.5); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L286 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
title:Epic Stream Session #${Math.floor(Math.random() * 1000)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L292 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagement: 0.3 + Math.random() * 0.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L298 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const views = Math.floor((100000 / (i + 1)) * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L299 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const watchTime = views * (0.3 + Math.random() * 0.4); // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L300 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const retention = 0.3 + Math.random() * 0.4; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L301 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const revenue = views * (0.02 + Math.random() * 0.05); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L307 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
title:Best Moments - Episode ${Math.floor(Math.random() * 500)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L317 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const views = Math.floor((500000 / (i + 1)) * (0.7 + Math.random() * 0.6)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L318 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const shares = Math.floor(views * (0.05 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L324 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
title:Unbelievable Moment #${Math.floor(Math.random() * 10000)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L399 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const viewers = Math.floor(baseViewers * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L400 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const streams = Math.floor(viewers / (40 + Math.random() * 40)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L403 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const peakDayIndex = Math.floor(Math.random() * 7); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L419 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const viewers = Math.floor(800000 * baseMultiplier * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L421 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgDuration = (isWeekend ? 3.5 : 2.5) * (0.85 + Math.random() * 0.3); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L444 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgViewers: Math.floor(peak.avgViewers * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L445 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L526 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalReports = 5000 + Math.floor(Math.random() * 2000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L527 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const resolvedReports = Math.floor(totalReports * (0.85 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L528 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgResolutionTime = 2 + Math.random() * 4; // hours - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L529 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const contentRemoved = Math.floor(resolvedReports * (0.3 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L530 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const warningsIssued = Math.floor(resolvedReports * (0.4 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L531 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const suspensions = Math.floor(resolvedReports * (0.08 + Math.random() * 0.04)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L532 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const bans = Math.floor(resolvedReports * (0.02 + Math.random() * 0.02)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L548 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const reports = Math.floor(totalReports * cat.share * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L549 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const actionsTaken = Math.floor(reports * (0.6 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L572 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(a.count * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L573 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgResponseTime: a.avgResponseTime * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L642 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgBitrate: 5500 + Math.floor(Math.random() * 1500), // kbps - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L644 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
bufferingRate: 0.012 + Math.random() * 0.008, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L645 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgStartupTime: 1.8 + Math.random() * 0.8, // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L646 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLatency: 2.5 + Math.random() * 1.5, // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L647 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
streamHealth: 0.95 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L648 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
transcodeSuccess: 0.995 + Math.random() * 0.004, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L649 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
cdnEfficiency: 0.92 + Math.random() * 0.06, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L662 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
streams: Math.floor(15000 * res.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L664 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgBitrate: res.avgBitrate * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L665 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
bufferingRate: 0.01 + (1 - res.share) * 0.02 + Math.random() * 0.01, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L678 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgBitrate: reg.avgBitrate * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L679 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLatency: reg.latency * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L680 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
bufferingRate: 0.01 + reg.latency * 0.002 + Math.random() * 0.005, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L681 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
cdnNodes: 5 + Math.floor(Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L704 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: Math.floor(e.count * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L706 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
trend: -5 + Math.random() * 15, // percent change - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L759 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalDiscoveries = 2000000 + Math.floor(Math.random() * 500000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L773 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
discoveries: Math.floor(totalDiscoveries * s.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L775 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
conversionRate: 0.1 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L776 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgWatchTime: 5 + Math.random() * 20, // minutes - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L781 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
impressions: 10000000 + Math.floor(Math.random() * 2000000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L782 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
clicks: 800000 + Math.floor(Math.random() * 200000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L783 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
ctr: 0.06 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L784 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
watches: 600000 + Math.floor(Math.random() * 150000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L785 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
watchRate: 0.7 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L786 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
follows: 50000 + Math.floor(Math.random() * 20000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L787 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
followRate: 0.06 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L788 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgRelevanceScore: 0.72 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L793 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalSearches: 500000 + Math.floor(Math.random() * 100000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L794 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
uniqueSearchers: 150000 + Math.floor(Math.random() * 50000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L795 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgResultsClicked: 1.5 + Math.random() * 1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L796 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
noResultsRate: 0.05 + Math.random() * 0.03, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L797 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSearchToWatch: 45 + Math.random() * 30, // seconds - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L813 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
searches: Math.floor((10000 / (i + 1)) * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L814 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
clickRate: 0.3 + Math.random() * 0.4, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L815 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
trend: -10 + Math.random() * 30, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/admin-bi-dashboard/src/routes/platform.ts#
- L54 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 150000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L55 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeUsers = Math.floor(totalUsers * (0.3 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L57 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeCreators = Math.floor(totalCreators * (0.4 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L58 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalStreams = activeCreators * (5 + Math.floor(Math.random() * 10)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L59 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const liveStreams = Math.floor(activeCreators * (0.1 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L60 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgViewersPerStream = 50 + Math.floor(Math.random() * 150); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L63 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = totalStreams * avgViewersPerStream * (0.5 + Math.random() * 1.5); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L68 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevUsers = totalUsers * (0.85 + Math.random() * 0.1); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L69 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevCreators = totalCreators * (0.9 + Math.random() * 0.1); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L70 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevStreams = totalStreams * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L71 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevViewingHours = totalViewingHours * (0.8 + Math.random() * 0.2); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L72 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevRevenue = totalRevenue * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L102 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
serverUptime: 99.95 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L103 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLatency: 45 + Math.random() * 30, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L104 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
errorRate: 0.01 + Math.random() * 0.02, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L105 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
streamQuality: 0.95 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L106 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
contentModerationRate: 0.98 + Math.random() * 0.02, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L137 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const liveStreams = 50 + Math.floor(Math.random() * 100); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L138 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgViewersPerStream = 50 + Math.floor(Math.random() * 150); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L145 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
transactionsPerMinute: 10 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L146 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenuePerMinute: 50 + Math.random() * 200, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L147 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
chatMessagesPerMinute: liveStreams * (20 + Math.floor(Math.random() * 30)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L148 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
newRegistrations: Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L149 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
errorCount: Math.floor(Math.random() * 3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L150 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgStreamBitrate: 4500 + Math.floor(Math.random() * 1500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L151 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgStreamLatency: 1.5 + Math.random() * 1.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L195 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const uptime = comp.base + Math.random() * (1 - comp.base); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L200 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
latency: 10 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L267 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 150000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L268 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = 500000 + Math.random() * 500000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L286 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * c.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L287 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creators: Math.floor(totalUsers * c.share * 0.05 * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L288 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewers: Math.floor(totalUsers * c.share * 0.5 * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L289 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenue: totalRevenue * c.share * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/admin-bi-dashboard/src/routes/revenue.ts#
- L56 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const grossRevenue = 500000 + Math.random() * 500000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L75 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const previous = grossRevenue * s.prevShare * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L76 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const txCount = Math.floor(current / (10 + Math.random() * 30)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L99 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
transactions: Math.floor((grossRevenue * pm.share) / (15 + Math.random() * 25)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L101 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgValue: 15 + Math.random() * 25, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L170 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const grossRevenue = (50000 - i * 1500) * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L173 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const subscribers = Math.floor((5000 - i * 150) * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L174 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const viewers = subscribers * (3 + Math.random() * 5); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L175 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const streamHours = 50 + Math.floor(Math.random() * 100); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L176 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevGross = grossRevenue * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L276 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeSubscriptions = 25000 + Math.floor(Math.random() * 10000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L277 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgSubValue = 12 + Math.random() * 8; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L280 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevMrr = mrr * (0.9 + Math.random() * 0.1); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L287 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgLifetime = 4.5 + Math.random() * 2; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L302 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
churnRate: churnRate * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L303 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLifetime: avgLifetime * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L311 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
month1: Math.pow(baseRetention, 1) * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L312 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
month2: Math.pow(baseRetention - decay, 2) * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L313 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
month3: Math.pow(baseRetention - decay * 2, 3) * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L314 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
month6: Math.pow(baseRetention - decay * 3, 6) * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L315 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
month12: Math.pow(baseRetention - decay * 4, 12) * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L389 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalTransactions = 50000 + Math.floor(Math.random() * 30000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L390 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalVolume = 500000 + Math.random() * 500000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L391 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const successRate = 0.97 + Math.random() * 0.02; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L414 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
(totalTransactions / 24) * peakMultiplier * (0.9 + Math.random() * 0.2) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L426 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
type: types[Math.floor(Math.random() * types.length)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L427 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: 100 + Math.random() * 500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L429 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
userId:user-${Math.floor(Math.random() * 10000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L430 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
creatorId:creator-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L432 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
start.getTime() + Math.random() * (end.getTime() - start.getTime()) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L434 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
status: Math.random() > 0.03 ? 'completed' : 'pending', - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L503 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const currentMrr = 150000 + Math.random() * 50000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L504 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const growthRate = 0.05 + Math.random() * 0.05; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L510 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
projectedMrr *= 1 + growthRate * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/admin-bi-dashboard/src/routes/users.ts#
- L55 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 200000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L56 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeUsers = Math.floor(totalUsers * (0.35 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L57 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const newUsers = Math.floor(totalUsers * 0.05 * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L58 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const churned = Math.floor(newUsers * (0.2 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L59 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const reactivated = Math.floor(churned * (0.15 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L60 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const verified = Math.floor(totalUsers * (0.6 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L61 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const premium = Math.floor(totalUsers * (0.08 + Math.random() * 0.04)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L64 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevActiveUsers = activeUsers * (0.88 + Math.random() * 0.08); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L65 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevNewUsers = newUsers * (0.85 + Math.random() * 0.1); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L66 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const retentionRate = 0.75 + Math.random() * 0.1; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L67 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevRetention = retentionRate * (0.95 + Math.random() * 0.08); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L71 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activationRate = 0.65 + Math.random() * 0.2; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L144 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalNewUsers = 8000 + Math.floor(Math.random() * 4000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L159 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const users = Math.floor(totalNewUsers * ch.share * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L160 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const conversionRate = 0.02 + Math.random() * 0.08; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L161 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const cac = ch.cac * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L162 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const ltv = 50 + Math.random() * 150; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L188 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const users = Math.floor(((totalNewUsers * 0.05) / (index + 1)) * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L189 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const spend = users * (20 + Math.random() * 30); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L196 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
conversionRate: 0.02 + Math.random() * 0.06, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L202 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const referrals = Math.floor((50 / (i + 1)) * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L207 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
conversionRate: 0.4 + Math.random() * 0.4, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L290 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const mau = 150000 + Math.floor(Math.random() * 30000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L291 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const wau = Math.floor(mau * (0.45 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L292 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const dau = Math.floor(wau * (0.35 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L294 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgSessionDuration = 15 + Math.random() * 25; // minutes - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L295 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgSessionsPerUser = 2 + Math.random() * 3; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L296 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgViewingTime = 45 + Math.random() * 60; // minutes per day - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L297 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const avgInteractions = 10 + Math.floor(Math.random() * 20); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L312 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const users = Math.floor(dau * act.share * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L313 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const count = users * (1 + Math.floor(Math.random() * 5)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L333 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const users = Math.floor(mau * seg.share * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L337 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgEngagement: seg.avgEngagement * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L338 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
retention: 0.5 + seg.avgEngagement * 0.4 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L350 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
week1: baseEngagement * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L351 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
week2: baseEngagement * 0.85 * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L352 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
week3: baseEngagement * 0.75 * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L353 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
week4: baseEngagement * 0.65 * (0.95 + Math.random() * 0.1), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L420 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalCreators = 12000 + Math.floor(Math.random() * 3000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L421 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeCreators = Math.floor(totalCreators * (0.4 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L422 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const newCreators = Math.floor(totalCreators * 0.04 * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L423 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const verifiedCreators = Math.floor(totalCreators * (0.25 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L424 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const topTierCreators = Math.floor(totalCreators * (0.02 + Math.random() * 0.01)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L427 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevActiveCreators = activeCreators * (0.9 + Math.random() * 0.08); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L428 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevNewCreators = newCreators * (0.85 + Math.random() * 0.15); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L429 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const prevVerified = verifiedCreators * (0.92 + Math.random() * 0.06); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L444 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const creators = Math.floor(totalCreators * cat.share * (0.85 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L448 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgRevenue: 500 + Math.random() * 2000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L449 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgViewers: 20 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L450 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
growth: -5 + Math.random() * 25, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L467 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const count = Math.floor(onboardingBase * stage.conversionRate * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L473 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTimeInStage: stage.avgTime * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L561 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const cohortUsers = 500 + Math.floor(Math.random() * 500); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L565 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
return Math.min(1, baseRetention * (0.9 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L588 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
d1Retention: 0.45 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L589 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
d7Retention: 0.25 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L590 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
d30Retention: 0.12 + Math.random() * 0.08, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L591 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
d90Retention: 0.06 + Math.random() * 0.04, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L592 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLifetimeDays: 45 + Math.random() * 30, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L593 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
churnPredictionAccuracy: 0.75 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L648 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 200000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L660 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * age.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L662 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgWatchTime: 30 + Math.random() * 60, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L663 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSpend: 5 + Math.random() * 25, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L674 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * g.share * (0.95 + Math.random() * 0.1)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L676 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgEngagement: 0.3 + Math.random() * 0.4, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L688 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * d.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L690 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSessionDuration: 15 + Math.random() * 30, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L703 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * p.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L705 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
conversionRate: 0.02 + Math.random() * 0.06, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L720 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * l.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L776 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 200000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L792 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(totalUsers * s.share * (0.9 + Math.random() * 0.2)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L794 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLifetimeValue: s.avgValue * (0.8 + Math.random() * 0.4), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L795 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgDaysInStage: 5 + Math.floor(Math.random() * 25), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L819 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
rate: t.rate * (0.9 + Math.random() * 0.2), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L820 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
users: Math.floor(1000 * t.rate * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L825 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
overall: 0.65 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L826 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
growth: 0.7 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L827 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagement: 0.6 + Math.random() * 0.25, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L828 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
retention: 0.55 + Math.random() * 0.3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L829 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
monetization: 0.5 + Math.random() * 0.3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/admin-bi-dashboard/src/types.ts#
- L1139 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 2 * volatility * baseValue; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/alerts.ts#
- L249 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
end.getTime() - Math.random() * (end.getTime() - start.getTime()) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L252 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
Math.random() > 0.3 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L254 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
end.getTime() - Math.random() * (end.getTime() - start.getTime()) * 0.5 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L259 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 50 + Math.random() * 100, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L262 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
acknowledged: Math.random() > 0.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L263 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
acknowledgedBy: Math.random() > 0.5 ? 'admin@example.com' : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L264 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
acknowledgedAt: Math.random() > 0.5 ? new Date().toISOString() : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L292 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
triggeredAt: new Date(Date.now() - Math.random() * 3600000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L295 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 50 + Math.random() * 50, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L581 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalSpending: 100 + Math.random() * 400, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L582 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
watchTime: 5000 + Math.random() * 10000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L583 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messageCount: 50 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L589 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
addedAt: new Date(Date.now() - Math.random() * 90 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L706 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalUsers = 10000 + Math.floor(Math.random() * 5000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/dashboards.ts#
- L113 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = 15000 + Math.random() * 10000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L114 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalViewers = 25000 + Math.floor(Math.random() * 15000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L115 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalFollowers = 12000 + Math.floor(Math.random() * 5000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L116 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalStreams = 15 + Math.floor(Math.random() * 10); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L130 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgStreamDuration: 120 + Math.floor(Math.random() * 60), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L132 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagementRate: 0.35 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L145 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
duration: 90 + Math.floor(Math.random() * 90), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L147 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenue: 800 - i * 100 + Math.random() * 200, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L148 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagement: 0.35 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L159 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewers: Math.floor((totalViewers / 30) * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L160 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
unique: Math.floor((totalViewers / 30) * 0.6 * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L164 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: (totalRevenue / 30) * (0.7 + Math.random() * 0.6), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L241 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalWatchTime = 5000 + Math.floor(Math.random() * 3000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L242 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalSpending = 200 + Math.floor(Math.random() * 300); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L260 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
streamsWatched: 45 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L261 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creatorsFollowed: 12 + Math.floor(Math.random() * 8), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L262 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesSent: 150 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L263 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reactionsGiven: 300 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L277 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creatorUsername:Creator${Math.floor(Math.random() * 10)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L278 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
streamId:stream-${Math.floor(Math.random() * 100)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L343 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = 500000 + Math.random() * 200000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L344 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeUsers = 75000 + Math.floor(Math.random() * 25000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L345 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeCreators = 1500 + Math.floor(Math.random() * 500); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L346 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const liveStreams = 150 + Math.floor(Math.random() * 50); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L388 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
cpu: { usage: 45 + Math.random() * 20, load: [2.1, 2.3, 2.5] }, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L392 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
percentage: 50 + Math.random() * 10, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L397 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
percentage: 50 + Math.random() * 10, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L425 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
churnRate: 0.06 + Math.random() * 0.02, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L426 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
conversionRate: 0.12 + Math.random() * 0.03, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L461 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeStreams: 150 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L462 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalViewers: 25000 + Math.floor(Math.random() * 10000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L463 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeConnections: 35000 + Math.floor(Math.random() * 15000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L464 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesPerMinute: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L465 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tipsPerMinute: 50 + Math.floor(Math.random() * 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L466 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenuePerMinute: 800 + Math.floor(Math.random() * 400), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L486 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: i % 4 === 0 ? 10 + Math.floor(Math.random() * 50) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L487 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
username:User${Math.floor(Math.random() * 1000)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/engagement.ts#
- L79 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalMessages = 500000 + Math.floor(Math.random() * 200000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L85 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgMessageLength: 25 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L86 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
peakMessagesPerMinute: 150 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L87 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
emoticonUsage: 0.35 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L94 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLength: 20 + Math.floor(Math.random() * 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L99 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalTipAmount = 150000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L108 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
maxTipAmount: 500 + Math.floor(Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L123 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTip: 25 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L138 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
newFollowers: 5000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L139 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
unfollowers: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L140 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
netFollowerChange: 4500 + Math.floor(Math.random() * 1800), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L141 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
followRate: 0.12 + Math.random() * 0.05, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L157 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeDeviceSessions: 2000 + Math.floor(Math.random() * 1000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L158 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
uniqueDeviceUsers: 1500 + Math.floor(Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L159 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSessionDuration: 25 * 60 + Math.floor(Math.random() * 15 * 60), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L178 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const multiplier = 0.8 + Math.random() * 0.4; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L181 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagementRate: (0.3 + Math.random() * 0.2) * multiplier, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L194 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
overallEngagementRate: 0.35 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L197 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSessionEngagement: 0.45 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L237 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalMessages = 500000 + Math.floor(Math.random() * 200000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L318 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgLength: 20 + Math.floor(Math.random() * 25), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L319 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
emoticonRate: 0.3 + Math.random() * 0.3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L351 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalAmount = 150000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L476 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgTip: 35 + Math.random() * 40, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L477 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
maxTip: 100 + Math.floor(Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L478 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTip: new Date(end.getTime() - Math.random() * 7 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L479 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
isMember: Math.random() > 0.3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L532 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const newFollowers = 5000 + Math.floor(Math.random() * 2000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L533 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const unfollowers = 500 + Math.floor(Math.random() * 200); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L534 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalReactions = 750000 + Math.floor(Math.random() * 250000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L542 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 150000 + Math.floor(Math.random() * 50000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L555 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
new: Math.floor((newFollowers / 30) * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L556 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lost: Math.floor((unfollowers / 30) * (0.8 + Math.random() * 0.4)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L573 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 8000 + Math.floor(Math.random() * 3000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L584 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 15000 + Math.floor(Math.random() * 5000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L633 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeSessions = 2500 + Math.floor(Math.random() * 1000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L635 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalRevenue = 75000 + Math.floor(Math.random() * 25000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L719 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSessionDuration: 25 + Math.floor(Math.random() * 15), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L751 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeViewers: 15000 + Math.floor(Math.random() * 5000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L752 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeChatters: 3000 + Math.floor(Math.random() * 1000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L753 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesPerMinute: 150 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L754 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tipsPerMinute: 25 + Math.floor(Math.random() * 15), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L755 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenuePerMinute: 450 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L756 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeDeviceSessions: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L761 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: 14000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L765 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: 140 + Math.floor(Math.random() * 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L769 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
count: 20 + Math.floor(Math.random() * 15), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L770 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: 350 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L783 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: 5 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L785 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creatorUsername:Creator${Math.floor(Math.random() * 10) + 1}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L787 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
message: Math.random() > 0.5 ? 'Great stream!' : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/exports.ts#
- L49 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
rowCount: 1500 + Math.floor(Math.random() * 1000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L50 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
fileSize: 1024 * 1024 * (1 + Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L110 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
rowCount: 1000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L111 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
fileSize: 1024 * 1024 * (0.5 + Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L205 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 5000 + Math.random() * 3000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L206 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: 2000 + Math.random() * 1500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L207 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
subscriptions: 1500 + Math.random() * 1000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L208 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
contentSales: 500 + Math.random() * 500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L209 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
privateShows: 300 + Math.random() * 300, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L210 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tokens: 200 + Math.random() * 200, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L241 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 3000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L242 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
unique: 2000 + Math.floor(Math.random() * 1500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L243 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
new: 300 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L244 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
returning: 1700 + Math.floor(Math.random() * 1300), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L245 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgWatchTime: 30 + Math.floor(Math.random() * 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L246 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
peakConcurrent: 500 + Math.floor(Math.random() * 400), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L276 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messages: 15000 + Math.floor(Math.random() * 10000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L277 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
chatters: 2000 + Math.floor(Math.random() * 1500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L278 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: 500 + Math.floor(Math.random() * 400), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L279 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tippers: 150 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L280 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reactions: 8000 + Math.floor(Math.random() * 5000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L281 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
follows: 200 + Math.floor(Math.random() * 150), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L282 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagementRate: 0.3 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/health.ts#
- L84 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
latency: 5 + Math.random() * 10, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L93 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
latency: 1 + Math.random() * 3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L94 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
hitRate: 0.85 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L98 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
latency: 10 + Math.random() * 20, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L99 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
queueSize: Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L103 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
connections: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L116 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 1000000 + Math.floor(Math.random() * 500000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L117 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
perSecond: 150 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L118 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
errorRate: 0.001 + Math.random() * 0.002, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/predictions.ts#
- L584 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const baseValue = 1000 + Math.random() * 2000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L585 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const trend = 1 + Math.random() * 0.001; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L592 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const noise = 0.9 + Math.random() * 0.2; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L611 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const startTime = new Date(now.getTime() - Math.random() * days * 24 * 60 * 60 * 1000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L612 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const duration = 1 + Math.floor(Math.random() * 4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L614 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const peakViewers = 50 + Math.floor(Math.random() * 500); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L615 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const averageViewers = Math.floor(peakViewers * (0.4 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L623 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalRevenue: averageViewers * (0.5 + Math.random() * 1.5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L624 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
category: ['gaming', 'irl', 'creative', 'music'][Math.floor(Math.random() * 4)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L633 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const category = ['gaming', 'irl', 'creative'][Math.floor(Math.random() * 3)] ?? 'gaming'; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L638 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const dayOfWeek = Math.floor(Math.random() * 7); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L639 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const hour = Math.floor(Math.random() * 24); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L650 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewerOverlap: 0.2 + Math.random() * 0.3, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L659 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const publishedAt = new Date(now.getTime() - Math.random() * 180 * 24 * 60 * 60 * 1000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L660 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const views = 100 + Math.floor(Math.random() * 10000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L661 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const engagement = 5 + Math.random() * 25; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L662 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const revenue = views * (0.01 + Math.random() * 0.05); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L669 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
peakViewers: type === 'stream' ? Math.floor(views * (0.1 + Math.random() * 0.2)) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L671 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
type === 'stream' ? Math.floor(views * (0.05 + Math.random() * 0.1)) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L674 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
duration: type === 'stream' ? 60 + Math.floor(Math.random() * 180) : undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L675 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
title:Content ${i + 1} - ${['Amazing', 'Epic', 'Special', 'New'][Math.floor(Math.random() * 4)]} ${type}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L676 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tags: Array.from({ length: 3 + Math.floor(Math.random() * 5) }, (_, j) =>tag${j + 1}), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L677 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
category: ['gaming', 'irl', 'creative', 'music'][Math.floor(Math.random() * 4)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L678 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
retentionRate: 0.3 + Math.random() * 0.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L685 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalFollowers: 5000 + Math.floor(Math.random() * 50000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L686 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeFollowers: 1000 + Math.floor(Math.random() * 10000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L687 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
averageAge: 22 + Math.floor(Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/revenue.ts#
- L113 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: Math.random() * 10000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L114 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: Math.random() * 4000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L115 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
subscriptions: Math.random() * 3000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L116 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
contentSales: Math.random() * 1500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L117 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
privateShows: Math.random() * 1000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L118 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tokens: Math.random() * 500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L139 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const previousRevenue = totalRevenue * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L140 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const previousTransactions = transactionCount * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L164 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
payers: calculateGrowth(uniquePayers, uniquePayers * (0.85 + Math.random() * 0.3)), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L295 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: Math.random() * 1000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L296 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: Math.random() * 400, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L297 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
subscriptions: Math.random() * 300, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L298 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
contentSales: Math.random() * 150, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L299 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
privateShows: Math.random() * 100, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L300 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tokens: Math.random() * 50, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L367 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTransaction: new Date(end.getTime() - Math.random() * 86400000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L375 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTransaction: new Date(end.getTime() - Math.random() * 86400000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L383 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTransaction: new Date(end.getTime() - Math.random() * 86400000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L391 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTransaction: new Date(end.getTime() - Math.random() * 86400000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L399 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
lastTransaction: new Date(end.getTime() - Math.random() * 86400000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L407 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.75 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L448 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const amount = Math.random() * 50000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L449 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const previousAmount = amount * (0.8 + Math.random() * 0.4); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L509 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const source = sources[Math.floor(Math.random() * sources.length)]; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L510 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const amount = source === 'tips' ? 5 + Math.random() * 100 : 10 + Math.random() * 200; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L520 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
creatorId:creator-${Math.floor(Math.random() * 50) + 1}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L521 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creatorUsername:Creator${Math.floor(Math.random() * 50) + 1}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L522 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
userId:user-${Math.floor(Math.random() * 1000) + 1}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L523 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
username:User${Math.floor(Math.random() * 1000) + 1}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L525 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
source !== 'subscriptions' ?stream-${Math.floor(Math.random() * 200) + 1}: undefined, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L528 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
start.getTime() + Math.random() * (end.getTime() - start.getTime()) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L583 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const currentRevenue = 50000 + Math.random() * 100000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L673 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalVolume = 500000 + Math.random() * 1000000; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L686 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeCreators: Math.floor(1000 + Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L687 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeUsers: Math.floor(50000 + Math.random() * 25000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L752 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const activeSubscriptions = 5000 + Math.floor(Math.random() * 2000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/trends.ts#
- L103 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 150000 + Math.random() * 50000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L108 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 140000 + Math.random() * 40000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L120 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 75000 + Math.random() * 25000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L125 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 70000 + Math.random() * 20000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L137 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 0.42 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L142 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 0.38 + Math.random() * 0.08, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L154 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 85000 + Math.random() * 30000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L159 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 80000 + Math.random() * 25000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L171 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 5500 + Math.random() * 1000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L176 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 5000 + Math.random() * 800, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L188 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 8000 + Math.random() * 2000, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L193 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 7200 + Math.random() * 1500, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L354 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 1.5 + Math.random() * 0.5 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L356 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 0.5 + Math.random() * 0.2 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L357 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
: 1 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L423 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
period1: base + Math.random() * variance, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L424 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
period2: base * 0.9 + Math.random() * variance * 0.8, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L517 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const growthRate = 0.02 + Math.random() * 0.03; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L521 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: baseValue * (0.9 + Math.random() * 0.2) * (1 + (i * growthRate) / 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L599 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const severity = severities[Math.floor(Math.random() * 3)]; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L600 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const isPositive = Math.random() > 0.3; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L605 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
timestamp: new Date(start.getTime() + Math.random() * periodMs).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L606 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 100 * (isPositive ? 1.2 + Math.random() * 0.5 : 0.5 + Math.random() * 0.3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L608 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
deviation: isPositive ? 0.2 + Math.random() * 0.5 : -(0.2 + Math.random() * 0.3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L842 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 1.8 + Math.random() * 0.4 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L844 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 0.4 + Math.random() * 0.2 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L845 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
: 1.0 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L852 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 1.6 + Math.random() * 0.3 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L854 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 0.5 + Math.random() * 0.2 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L855 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
: 1.0 + Math.random() * 0.2, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L862 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 1.4 + Math.random() * 0.3 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L864 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
? 0.7 + Math.random() * 0.15 - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L865 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
: 1.0 + Math.random() * 0.15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/routes/viewers.ts#
- L83 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const totalViewers = 100000 + Math.floor(Math.random() * 50000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L193 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const initialSize = Math.floor(1000 + Math.random() * 500); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L217 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const multiplier = 0.8 + Math.random() * 0.4; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L285 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const uniqueViewers = 50000 + Math.floor(Math.random() * 25000); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L331 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgWatchTime: 30 + Math.random() * 30, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L332 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSpending: 15 + Math.random() * 20, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L466 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 150000 + Math.floor(Math.random() * 50000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L560 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const initialSize = Math.floor(800 + Math.random() * 400); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L563 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variance = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L569 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenue: initialSize * retained * (15 + Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L585 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgAge: 25 + Math.floor(Math.random() * 15), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L586 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
topCountry: ['US', 'GB', 'DE', 'CA'][Math.floor(Math.random() * 4)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L588 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
Math.floor(Math.random() * 4) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L654 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
status: ['active', 'inactive', 'new', 'returning'][Math.floor(Math.random() * 4)] as - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L660 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalWatchTime: Math.floor(Math.random() * 10000) * 60, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L661 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
sessionsCount: Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L662 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
avgSessionDuration: Math.floor(30 + Math.random() * 60) * 60, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L663 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalSpending: Math.floor(Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L664 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tipsGiven: Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L665 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
subscriptions: Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L666 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesCount: Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L667 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
followedCreators: Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L670 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
rate: Math.random() * 0.5, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L672 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
end.getTime() - Math.random() * (end.getTime() - start.getTime()) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L674 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
favoriteCreator:Creator${Math.floor(Math.random() * 100)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L677 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
country: ['US', 'GB', 'DE', 'CA', 'FR'][Math.floor(Math.random() * 5)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L678 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
platform: ['web', 'ios', 'android'][Math.floor(Math.random() * 3)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L679 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
device: ['desktop', 'mobile', 'tablet'][Math.floor(Math.random() * 3)], - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L681 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
joinedAt: new Date(Date.now() - Math.random() * 365 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L722 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
joinedAt: new Date(Date.now() - Math.random() * 730 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L750 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
amount: 50 + Math.random() * 100, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L762 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
streamId:stream-${Math.floor(Math.random() * 100)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L763 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
creatorUsername:Creator${Math.floor(Math.random() * 50)}, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L765 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
duration: Math.floor(20 + Math.random() * 60) * 60, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L766 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messages: Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L767 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: Math.floor(Math.random() * 3), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/analytics-dashboard/src/websocket/handler.ts#
- L279 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeStreams: 150 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L280 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
totalViewers: 25000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L281 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesPerMinute: 500 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L282 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tipsPerMinute: 50 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L283 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenuePerMinute: 800 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L289 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
current: 800 + Math.floor(Math.random() * 400), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L290 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: 400 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L291 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
subscriptions: 300 + Math.floor(Math.random() * 150), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L292 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
other: 100 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L295 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 700 + Math.floor(Math.random() * 300), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L302 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
total: 25000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L303 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
concurrent: 15000 + Math.floor(Math.random() * 1500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L304 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
new: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L305 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
returning: 14500 + Math.floor(Math.random() * 1300), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L308 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value: 14500 + Math.floor(Math.random() * 1000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L315 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messagesPerMinute: 500 + Math.floor(Math.random() * 100), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L316 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeChatters: 3000 + Math.floor(Math.random() * 500), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L317 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tipsPerMinute: 50 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L318 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
reactionsPerMinute: 200 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L319 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
engagementRate: 0.35 + Math.random() * 0.1, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L325 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
active: Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L332 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
live: 150 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L333 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
starting: Math.floor(Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L334 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
ending: Math.floor(Math.random() * 10), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L337 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewers: 2000 - i * 300 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L338 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: 100 - i * 15 + Math.floor(Math.random() * 20), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L345 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewers: 500 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L346 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
tips: 50 + Math.floor(Math.random() * 30), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L347 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
messages: 100 + Math.floor(Math.random() * 50), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L348 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
followers: Math.floor(Math.random() * 5), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L355 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
cpu: 40 + Math.random() * 20, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L356 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
memory: 50 + Math.random() * 15, - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L357 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
activeConnections: 35000 + Math.floor(Math.random() * 5000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L359 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
revenue: 800 + Math.floor(Math.random() * 200), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L360 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
viewers: 25000 + Math.floor(Math.random() * 2000), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
apps/aphrodite/auth/src/routes/oauth.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const nonce = Math.random().toString(36).substring(2); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/mobile-broadcaster/src/services/ChatService.ts#
- L647 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/mobile-broadcaster/src/services/NotificationService.ts#
- L905 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/mobile-broadcaster/src/services/StreamingService.ts#
- L564 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstream*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/mobile-viewer/src/services/OfflineService.ts#
- L484 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const downloadId =download*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L800 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const messageId =msg*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/aphrodite/notifications/src/push/service.ts#
- L306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:push*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/arete/mobile/src/screens/coach/__tests__/setup.ts#
- L408 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
{ label: 'Mon', value: 50 + Math.round(Math.random() * 50) }, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L409 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
{ label: 'Tue', value: 50 + Math.round(Math.random() * 50) }, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L410 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
{ label: 'Wed', value: 50 + Math.round(Math.random() * 50) }, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L411 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
{ label: 'Thu', value: 50 + Math.round(Math.random() * 50) }, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L412 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
{ label: 'Fri', value: 50 + Math.round(Math.random() * 50) }, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/arete/mobile/src/screens/gamification/__tests__/setup.ts#
- L735 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
progress: i < 15 ? 1 : Math.random() * 0.9, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L783 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
points: Math.max(100, 5000 - i * 200 + Math.floor(Math.random() * 100)), - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L830 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
startDate.setDate(startDate.getDate() - Math.floor(Math.random() * 14)); - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L838 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
const progress = i < 2 ? targetValue : Math.floor(Math.random() * targetValue); - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/arete/mobile/src/screens/gamification/components/CelebrationAnimations.tsx#
- L95 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const angle = Math.random() * Math.PI * 2; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L96 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const distance = 80 + Math.random() * 120; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L167 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const drift = (Math.random() - 0.5) * 100; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L168 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const rotations = 2 + Math.random() * 4; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L180 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
duration: 2000 + Math.random() * 1000, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L185 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
duration: 2000 + Math.random() * 1000, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L190 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
duration: 2000 + Math.random() * 1000, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L207 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const width = 6 + Math.random() * 8; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L208 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const height = 10 + Math.random() * 12; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L301 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size={6 + Math.random() * 8} - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
apps/arete/mobile/src/screens/goals/__tests__/setup.ts#
- L245 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
progress: Math.round(Math.random() * 100), - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/arete/mobile/src/screens/habits/__tests__/setup.ts#
- L219 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
date.setHours(6 + (i % 4) * 4, Math.floor(Math.random() * 60), 0, 0); - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/arete/mobile/src/services/OfflineSyncService.ts#
- L221 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =${type}-${operation}-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/arete/web/src/pages/vision/VisionPage.tsx#
- L363 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const score = 60 + Math.floor(Math.random() * 35); - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/asase/api/src/api-auth.ts#
- L154 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * 16)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
apps/asase/dashboard/src/alert-center.ts#
- L118 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rnd = Math.random().toString(36).slice(2, 7); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/asase/dashboard/src/dashboard-shell.ts#
- L137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rnd = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/asase/dashboard/src/reporting-engine.ts#
- L145 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rnd = Math.random().toString(36).slice(2, 7); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L152 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rnd = Math.random().toString(36).slice(2, 7); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/bellona/build-api/src/main.ts#
- L210 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/bellona/remote-host/src/blender-adapter.ts#
- L916 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}:${Date.now()}:${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/api/src/routes/ai.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:vis-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L208 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:opt-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/api/src/routes/cross-domain.ts#
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = body.requestId ??prov-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L94 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = body.requestId ??maint-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/api/src/routes/equipment.ts#
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returneq-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/energy/src/carbon-tracker.ts#
- L172 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =REC-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/energy/src/energy-audit.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =AF-${Date.now()}-${Math.random().toString(36).slice(2, 5).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/alarm-management.ts#
- L60 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ALM-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/batch-management.ts#
- L124 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId =BATCH-${Date.now()}-${Math.random().toString(36).slice(2, 7).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/digital-twin.ts#
- L209 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const simulationId =SIM-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/production-monitor.ts#
- L164 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:DT-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/quality-management.ts#
- L167 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =DEF-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L209 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =INSP-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/scada-overview.ts#
- L92 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ALM-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/scheduler.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =JOB-${Date.now()}-${Math.random().toString(36).slice(2, 7).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/factory-os/src/shift-handover.ts#
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =SHIFT-${params.date}-${params.shift.toUpperCase()}-${Math.random().toString(36).slice(2, 5).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ISSUE-${Date.now()}-${Math.random().toString(36).slice(2, 5).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L97 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =INC-${Date.now()}-${Math.random().toString(36).slice(2, 5).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/architecture.ts#
- L158 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sync-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/asset-management.ts#
- L94 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/maintenance-kpi.ts#
- L108 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =fe-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L120 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =pm-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/mobile-api.ts#
- L287 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:photo-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L331 —
ALLOW(HIGH, ruleid-token-toString)- Code:
packageId:pkg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/spare-parts.ts#
- L89 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =sku-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/maintenance/src/work-order.ts#
- L116 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =wo-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/architecture.ts#
- L222 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:stmt-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/assessment.ts#
- L125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =asmt-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L142 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =att-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/certification.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =cert-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =rwo-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/corporate-training.ts#
- L116 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =corp-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L158 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:del-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L165 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const enrollmentId =cenr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L174 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:inv-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/course-catalog.ts#
- L73 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =crs-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L183 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =enr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/instructor-management.ts#
- L84 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =instr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =sched-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L186 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =fb-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/brigid/training/src/virtual-lab.ts#
- L371 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
tag.value += (Math.random() - 0.5) * 0.02 * (tag.maxValue - tag.minValue); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/cybele/api/src/routes/gateway.ts#
- L492 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const secret = Math.random().toString(36).substring(2) + Math.random().toString(36).substring(2); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/demeter/api/src/routes/weather.ts#
- L157 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
windDirection: ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'][Math.floor(Math.random() * 8)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/demeter/mobile/src/services/offline/ActionQueue.ts#
- L483 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnaction*${Date.now()}*${this.idCounter}_${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/demeter/mobile/src/services/offline/OfflinePhotoManager.ts#
- L532 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnphoto*${Date.now()}*${this.idCounter}_${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/demeter/mobile/src/services/offline/SyncEngine.ts#
- L490 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsync*${Date.now()}*${this.idCounter}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/demeter/web/src/pages/sensors/RealTimeMonitorPage.tsx#
- L386 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const delta = (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/freya/api/src/event-bus.ts#
- L262 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/freya/shop/src/customer-account.ts#
- L60 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =cust-${Date.now()}-${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/narrative-api/src/services/dialogue.service.ts#
- L977 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
nextNodeId = targets[Math.floor(Math.random() * targets.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L981 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
nextNodeId = targets[Math.floor(Math.random() * targets.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/narrative-api/src/services/validation.service.ts#
- L1769 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const validationId =val-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/simulation-worker/src/workers/culture-worker.ts#
- L298 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:culture-snapshot-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/simulation-worker/src/workers/economy-worker.ts#
- L297 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:snapshot-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/abilities.ts#
- L1215 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const newHex = candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/svc-veilborn-core/src/cards.ts#
- L406 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncard-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrade-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2400 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnloan-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2407 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngift-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2937 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sharing-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3225 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbalance-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/character-creation.ts#
- L549 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchar-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/character-sheet.ts#
- L267 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnitem-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L536 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnote-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L643 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnjournal-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L861 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnshare-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/dice.ts#
- L77 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Default random number generator using Math.random - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/hathor/svc-veilborn-core/src/game-state.ts#
- L74 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/multiplayer.ts#
- L1811 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/territory-control.ts#
- L559 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:hist*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/veylmaster.ts#
- L733 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selected = candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1082 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedRole = roles[Math.floor(Math.random() * roles.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1100 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...allTraits].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1106 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const disposition = dispositions[Math.floor(Math.random() * dispositions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1149 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:mem-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1589 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:journal-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/wargame.ts#
- L941 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:unit-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1649 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedUnit = unitPool[Math.floor(Math.random() * unitPool.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/svc-veilborn-core/src/weave.ts#
- L123 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-core/src/world-gen.ts#
- L2632 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < 0.3) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/hathor/svc-veilborn-strategy/src/ai-opponent.ts#
- L600 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aimove${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L616 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aiattack${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L632 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aiveil${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L649 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aipassage${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L665 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aialliance${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L677 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aibreak${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L693 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:airecruit${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L705 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aibuild${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L717 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:aiend${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/ai/ai-game-master.ts#
- L187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L941 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
situationTemplates[Math.floor(Math.random() * situationTemplates.length)] || - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L977 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
text: templates[Math.floor(Math.random() * templates.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/svc-veilborn-strategy/src/balance/balance-pipeline.ts#
- L179 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =experiment-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/data-access.ts#
- L149 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/echoes-of-fate/timeline-engine.ts#
- L56 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/eternal-game/influence-engine.ts#
- L56 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts#
- L68 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L333 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const suffix = suffixes[Math.floor(Math.random() * suffixes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts#
- L1115 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const resonance = resonanceTypes[Math.floor(Math.random() * resonanceTypes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/svc-veilborn-strategy/src/grand-campaign/types.ts#
- L1176 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncampaign*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1180 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1184 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmode*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/resonance-wars/combat-engine.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/routes/temporal-routes.ts#
- L301 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts#
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L326 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
agenda.hiddenFaction = otherFactions[Math.floor(Math.random() * otherFactions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L348 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return prophecies[Math.floor(Math.random() * prophecies.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L796 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L814 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return factions[Math.floor(Math.random() * factions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1263 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return seers[Math.floor(Math.random() * seers.length)].playerId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1266 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return potentialWitnesses[Math.floor(Math.random() * potentialWitnesses.length)].playerId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/hathor/workbench/src/components/Modal.tsx#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generatedTitleId = titleId ??modal-title-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/context.ts#
- L122 —
ALLOW(HIGH, ruleid-token-toString)- Code:
request.ctx?.requestId ??gql-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/plugin.ts#
- L107 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:gql-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/resolvers/cooking-session.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncs-${Date.now()}-${sessionIdCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/resolvers/index.ts#
- L176 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsl-${Date.now()}-${slIdCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/resolvers/meal-plan.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${mpIdCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/resolvers/pantry.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpantry-${Date.now()}-${pantryIdCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/api/src/graphql/resolvers/recipe.ts#
- L76 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${idCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L314 —
ALLOW(HIGH, ruleid-token-toString)- Code:
slug: slugify(input.title) + '-' + Math.random().toString(36).slice(2, 8), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/web/src/app/(app)/admin/api-keys/page.tsx#
- L256 —
ALLOW(HIGH, ruleid-token-toString)- Code:
keyPrefix:hstnew${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/web/src/app/(app)/pantry/bulk/page.tsx#
- L289 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:row-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L335 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:row-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L349 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:row-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/hestia/web/src/stores/cooking-store.ts#
- L77 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =session-${Date.now()}-${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/api/src/graphql/index.ts#
- L249 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =msg-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L401 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconv-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L405 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L494 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =wm-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L546 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =am-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L597 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =em-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L839 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =agent-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L928 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =task-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1050 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =kb-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1141 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =doc-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/developer-portal/src/services/partner-program-service.ts#
- L630 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).slice(2, 8).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/mobile/src/services/OfflineSyncService.ts#
- L233 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =${type}-${operation}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/mobile/src/store/chatStore.ts#
- L114 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/wearable/shared/src/sync.ts#
- L276 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsync*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/web/pwa/src/lib/offline-storage.ts#
- L424 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =sync-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/web/pwa/src/pages/ChatPage.tsx#
- L353 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Date.now().toString(36) + Math.random().toString(36).substr(2); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/web/widget/src/widget.ts#
- L947 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Date.now().toString(36) + Math.random().toString(36).substr(2); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/xr/shared/src/anchor-manager.ts#
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanchor*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AnchorId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/xr/shared/src/session-manager.ts#
- L137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as SessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/xr/shared/src/spatial-ui.ts#
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnui*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as UIElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/iris/xr/shared/src/voice-spatial.ts#
- L424 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =audio*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/isis/generation-api/src/workflows/error-boundary.ts#
- L554 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/isis/output-registry/src/services/output.service.ts#
- L3485 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3491 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3497 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/isis/web/src/pages/job-studio-preset-utils.ts#
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:preset_${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/isis/web/src/pages/output-review-loop-utils.ts#
- L226 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:comment_${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:annotation_${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/isis/workflow-registry/src/services/workflow.service.ts#
- L3438 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3456 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =wa*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3472 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =wa*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/mobile/src/__mocks__/react-native-widget.ts#
- L98 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
const widgetId =widget*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L165 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
completed: Math.min(7, Math.floor(Math.random() * 8)), - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L166 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
percentage: Math.min(100, Math.floor(Math.random() * 101)) - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L201 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
const activityId =activity*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/mobile/src/components/fitness/SvgLineChart.tsx#
- L5 —
ALLOW(HIGH, rulecomment-reference)- Code:
* react-native-svg. Renders real data — no Math.random / placeholder points. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/mobile/src/services/__mocks__/VoiceResponseService.ts#
- L59 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
const progress = Math.random() * 100; - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/mobile/src/services/auth/SeamlessAuthService.ts#
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
token:tok_${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/mobile/src/services/biometric/OracleDivinationService.ts#
- L118 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...deck].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/mobile/src/services/download/RetryManager.ts#
- L84 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * 2 * jitterAmount; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/mobile/src/services/progress/ProgressSyncServiceImpl.ts#
- L564 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return 'mobile_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L568 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).substr(2, 9) + Date.now().toString(36); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/mobile/src/services/voice/error-handler.ts#
- L164 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 100; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/lilith/svc-ai/src/agent-coordination.ts#
- L273 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L292 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L367 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.6 + Math.random() * 0.4, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L405 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/lilith/svc-ai/src/agent-executor.ts#
- L656 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/lilith/svc-ai/src/ai-personal-trainer/real-time-coaching.ts#
- L1761 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random()call so tests can assert exact message output. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/ambient-soundscape/ambient-soundscape-service.ts#
- L1474 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const azimuth = (Math.random() - 0.5) * 180 * params.stereoWidth; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-ai/src/asset-generation/asset-generation-service.ts#
- L1616 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = request.seed ?? Math.floor(Math.random() * 1000000); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/comfyui-generation-provider.ts#
- L498 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seed: request.seed || Math.floor(Math.random() * 2147483647), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1088 —
ALLOW(HIGH, rulecomment-reference)- Code:
// A/B tests require deterministic assignment per user; a Math.random() - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/domain-agents.ts#
- L820 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/lilith/svc-ai/src/dynamic-dialogue/dynamic-dialogue-service.ts#
- L367 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() > 0.5) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L809 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
let random = Math.random() * totalScore; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/fitness-instructor-generation/fitness-instructor-generation-service.ts#
- L1319 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params?.seed ?? Math.floor(Math.random() * 1000000); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1422 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed ?? Math.floor(Math.random() * 1000000); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/hair-generation/hair-generation-service.ts#
- L1892 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1893 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const phi = Math.random() * Math.PI * 0.5; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
apps/lilith/svc-ai/src/hiit-cardio-instruction/hiit-cardio-instruction-service.ts#
- L531 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = candidates.sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-ai/src/mandala-generation/mandala-generation-service.ts#
- L72 —
ALLOW(HIGH, rulecomment-reference)- Code:
// loop (Math.random() has ~1-in-millions collision risk at batch scale - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/meditation-generation/meditation-generation-pipeline.ts#
- L773 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
relevanceScore: 0.85 + Math.random() * 0.15, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L785 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
relevanceScore: 0.75 + Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1069 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
result.traditionScore = 0.85 + Math.random() * 0.1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts#
- L746 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
angle += (Math.random() - 0.5) * Math.PI * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1997 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.5, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1999 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.3 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2002 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2004 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.1 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-ai/src/multi-platform-delivery/smart-tv-casting.ts#
- L642 —
ALLOW(HIGH, rulecomment-reference)- Code:
* distribution — unlikeMath.random, which MUST NOT be used for - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/procedural-qa/procedural-qa-service.ts#
- L1373 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() > test.config.trafficPercentage) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1379 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
let random = Math.random() * totalWeight; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1447 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Math.random()*1000+100 placeholder and Math.random() metric - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1531 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
pValue: Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1532 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
isSignificant: Math.random() > 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/rpg-character-generation/character-generation-service.ts#
- L379 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const type = RESONANCE_TYPES[Math.floor(Math.random() * 5)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L783 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
loyalty: 50 + Math.floor(Math.random() * 50), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L944 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < 0.3) {return undefined;} - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1004 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
strength: Math.floor(Math.random() * 10) - 5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1005 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
bidirectional: Math.random() > 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1006 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
visibility: Math.random() > 0.8 ? ('secret' as const) : ('public' as const) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1239 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1397 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
inheritanceProbability: 0.5 + Math.random() * 0.25, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1443 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
inheritanceProbability: 0.4 + Math.random() * 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1453 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return abilities.filter(a => Math.random() < Math.min(a.inheritanceProbability, chance)); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1457 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return traits.filter(t => Math.random() < Math.min(t.inheritanceProbability, chance)); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1461 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() > chance) {return [];} - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1485 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
request.resonanceAffinity ?? RESONANCE_TYPES[Math.floor(Math.random() * 5)] ?? 'Clarity'; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts#
- L236 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
type === 'ultimate' ? 'soul' : (costTypes[Math.floor(Math.random() * 4)] ?? 'mana'); - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/lilith/svc-ai/src/rpg-map-generation/map-generation-service.ts#
- L92 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seasons: Math.random() > 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L104 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (total > 3 && Math.random() < 0.2) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L107 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < 0.3) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L110 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < 0.2) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L142 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const points = 8 + Math.floor(Math.random() * 8); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L146 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = 0.6 + Math.random() * 0.4; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L167 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return Math.random() > 0.5 ? 'temperate' : 'arid'; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L171 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L312 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
extractionDifficulty: Math.floor(Math.random() * 5) + 3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L362 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const neutralRatio = 0.2 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L367 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...candidates].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L391 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const resonanceIndex = Math.floor(Math.random() * RESONANCE_TYPES.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L399 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
strength: Math.floor(Math.random() * 5) + 5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L416 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const pointCount = 3 + Math.floor(Math.random() * 4); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L417 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...regions].sort(() => Math.random() - 0.5).slice(0, pointCount); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L427 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L449 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
: Math.random() > 0.5 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L452 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
power: Math.floor(Math.random() * 5) + 3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L462 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
radius: 50 + Math.floor(Math.random() * 100), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L463 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.floor(Math.random() * 3) + 1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L521 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const candidates = [...regions].sort(() => Math.random() - 0.5).slice(0, count); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L535 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
stability: Math.floor(Math.random() * 60) + 20, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L553 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L567 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L584 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
threatLevel: Math.random() < 0.3 ? 'active' : Math.random() < 0.6 ? 'stirring' : 'dormant', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L592 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
radius: 100 + Math.floor(Math.random() * 200), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L593 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
intensity: Math.floor(Math.random() * 5) + 3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L600 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L663 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const terrainIndex = Math.floor(Math.random() * options.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L703 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
.map((tile) => ({ tile, sortKey: Math.random() })) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L714 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return Math.random() > 0.5 ? 'medium' : 'heavy'; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L717 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return Math.random() > 0.5 ? 'light' : 'medium'; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L775 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = available.sort(() => Math.random() - 0.5).slice(0, count * 2); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L782 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const resonanceIndex = Math.floor(Math.random() * RESONANCE_TYPES.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L787 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
power: Math.floor(Math.random() * 5) + 3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L805 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const typeIndex = Math.floor(Math.random() * types.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L806 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const resonanceIndex = Math.floor(Math.random() * RESONANCE_TYPES.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L990 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const typeIndex = Math.floor(Math.random() * types.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L997 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
era:Era ${Math.floor(Math.random() * 5) + 1}, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1024 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts#
- L794 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: detected ? 60 + Math.floor(Math.random() * 40) : 0 - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L832 —
ALLOW(HIGH, ruleprobability-gate)- Code:
const correctVerdict = Math.random() < verdictProbability; - Rationale: Compares Math.random() against a configured probability threshold for stochastic gating.
- Code:
apps/lilith/svc-ai/src/rpg-political-intrigue/political-math.ts#
- L10 —
ALLOW(HIGH, rulecomment-reference)- Code:
* 1. NOMath.random(). Every score is a closed-form function of the - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L100 —
ALLOW(HIGH, rulecomment-reference)- Code:
* These bounds are the same shape the originalMath.randomranges produced, - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/rpg-quest-generation/quest-generation-service.ts#
- L67 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
function pickRandom<T>(arr: T[], random: () => number = Math.random): T { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L94 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const random = config.seed ? seededRandom(config.seed) : Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L157 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = random || Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L179 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = random || Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L279 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = random || Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L520 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const random = config.seed ? seededRandom(config.seed) : Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L609 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = random || Math.random; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L664 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (fromId && toId && Math.random() > 0.6) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L669 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
strength: 0.3 + Math.random() * 0.4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/runpod-integration/runpod-integration-service.ts#
- L840 —
ALLOW(HIGH, rulecomment-reference)- Code:
// avoids synthesising file counts via Math.random (which previously - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L898 —
ALLOW(HIGH, rulecomment-reference)- Code:
* populated by the caller (no Math.random defaults). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/text-to-3d/text-to-3d-service.ts#
- L2013 —
ALLOW(HIGH, rulecomment-reference)- Code:
* back to Math.random so the signal remains deterministic per prompt. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-ai/src/utils/request-retry-circuit-breaker.ts#
- L279 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
delay = delay + (Math.random() - 0.5) * jitterRange * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-ai/src/utils/routing-configuration-policies.ts#
- L388 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
delay = delay + (Math.random() - 0.5) * jitterRange * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-ai/src/verification/consensus-detection.ts#
- L480 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return 'Position ' + Math.random().toString(36).substr(2, 4); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-ai/src/world-generation/gaussian-splatting-service.ts#
- L618 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.random() * 2 - 1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L619 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: Math.random() * 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L620 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.random() * 2 - 1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L647 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.random() * 4 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L648 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: Math.random() * 4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L649 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.random() * 4 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L671 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L672 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L673 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L698 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
let currentPsnr = 15 + Math.random() * 5; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L717 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: baseSplat.position.x + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L718 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: baseSplat.position.y + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L719 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: baseSplat.position.z + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L727 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
currentPsnr += 1 + Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L760 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
splatCloud.metadata.ssim = 0.85 + Math.random() * 0.1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L798 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
lpips: 0.1 + Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L799 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
reprojectionError: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L800 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
coverageRatio: 0.85 + Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L974 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomIndex = Math.floor(Math.random() * splats.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1457 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const u = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1458 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const v = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-ai/src/world-generation/world-generation-service.ts#
- L129 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = (Math.random() * 16) | 0; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-anonymization/src/app.ts#
- L457 —
ALLOW(HIGH, rulecomment-reference)- Code:
* predict the noise added to a release. Math.random is explicitly not - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-auth/src/__tests__/integration/auth-test-harness.ts#
- L94 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
validKey: 'test_key_' + Math.random().toString(36).substring(7), - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/svc-biometric/src/implementations/GsrImplementations.ts#
- L16 —
ALLOW(HIGH, rulecomment-reference)- Code:
* with the same input return the same samples. NoMath.randomis used. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-biometric/src/implementations/PostureImplementations.ts#
- L39 —
ALLOW(HIGH, rulecomment-reference)- Code:
* NoMath.randomis used. All pseudo-random calibration samples come from a - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-biometric/src/implementations/TemperatureImplementations.ts#
- L31 —
ALLOW(HIGH, rulecomment-reference)- Code:
* userId) pairs. No Math.random is used anywhere in this module. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/content-licensing-service.ts#
- L644 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Randomness is CSPRNG-backed viarandomBase58Like(replacesMath.random) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/crypto-random.ts#
- L4 —
ALLOW(HIGH, rulecomment-reference)- Code:
* These replace previousMath.random()callsites across mock runtimes, - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L8 —
ALLOW(HIGH, rulecomment-reference)- Code:
* changes, from the PRNGMath.randomto Node's CSPRNG (crypto.randomBytes`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/in-memory-token-runtime.ts#
- L364 —
ALLOW(HIGH, rulecomment-reference)- Code:
//randomTxHashLike(replacesMath.random) so mock hashes keyed into - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/in-memory-transaction-runtime.ts#
- L55 —
ALLOW(HIGH, rulecomment-reference)- Code:
//Math.random * 1e6draw, which could produce non-monotone / - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L89 —
ALLOW(HIGH, rulecomment-reference)- Code:
// viarandomTxHashLike(replacesMath.random) so hashes keyed into the - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/nft-service.ts#
- L452 —
ALLOW(HIGH, rulecomment-reference)- Code:
*randomTxHashLike(replacesMath.random), producing a standard - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L464 —
ALLOW(HIGH, rulecomment-reference)- Code:
*randomBase58Like(replacesMath.random). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/sacred-asset-metadata.ts#
- L467 —
ALLOW(HIGH, rulecomment-reference)- Code:
// didn't supply one; replaces the previousMath.random()fallback - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/security-service.ts#
- L537 —
ALLOW(HIGH, rulecomment-reference)- Code:
* The entry id now uses a CSPRNG-backed suffix (replacesMath.random) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/transaction-manager.ts#
- L568 —
ALLOW(HIGH, rulecomment-reference)- Code:
* ReplacesMath.randomwith a CSPRNG-backed suffix viarandomShortId`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-blockchain/src/wallet-service.ts#
- L1230 —
ALLOW(HIGH, rulecomment-reference)- Code:
* CSPRNG-backed viarandomHex(replacesMath.random) so test addresses - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1255 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Randomness is CSPRNG-backed viarandomHex(replacesMath.random) so - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1279 —
ALLOW(HIGH, rulecomment-reference)- Code:
* CSPRNG-backed viarandomHex(replacesMath.random). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1306 —
ALLOW(HIGH, rulecomment-reference)- Code:
*randomBalanceHex(replacesMath.random). Theformattedconversion - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-conversation/src/app.ts#
- L1616 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return exponential + (Math.random() * 2 - 1) * jitterAmount; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/lilith/svc-daily-content/src/services/content-sharing-service.ts#
- L51 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Helper to generate random tokens using CSPRNG (CLAUDE.md bans Math.random for tokens) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-fiat-ramp/src/fiat-ramp.ts#
- L25 —
ALLOW(HIGH, rulecomment-reference)- Code:
* address, not a variable-length Math.random string. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L47 —
ALLOW(HIGH, rulecomment-reference)- Code:
* for the final decimal amount. This replaces Math.random (v8 - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-media/__mocks__/core-mock.ts#
- L145 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
export const generateId = vi.fn(() => 'mock-id-' + Math.random().toString(36).substr(2, 9)); - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
- L146 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
export const generateUUID = vi.fn(() => 'mock-uuid-' + Math.random().toString(36).substr(2, 9)); - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/svc-media/src/transcripts/transcript-processor.ts#
- L346 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: confidenceBase - Math.random() * 0.1 // Add slight variance - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/lilith/svc-metaverse/src/advanced/AstralProjection.ts#
- L550 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = 2 + Math.random() * 3; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L551 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const height = Math.random() * 4 - 2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L559 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
velocity: [Math.cos(angle) * 0.5, Math.random() * 0.5 - 0.25, Math.sin(angle) * 0.5], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L561 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
size: 0.1 + Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/advanced/EnergyFieldVisualization.ts#
- L242 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const angle = Math.random() * Math.PI * 2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L243 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = 0.5 + Math.random() * 1.5; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L248 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
this.bodyPosition[1] + Math.random() * 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L257 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
size: 0.05 + Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L258 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
life: 2.0 + Math.random() * 2.0, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/advanced/ProceduralWorldGenerator.ts#
- L105 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seed: config.seed || Math.floor(Math.random() * 1000000), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/advanced/UnderwaterConsciousness.ts#
- L150 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
Math.floor(Math.random() * 5) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L156 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
position: [Math.random() * 200 - 100, -Math.random() * 100, Math.random() * 200 - 100], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L158 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L159 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 0.5, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L160 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 2 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-metaverse/src/ai/AIServiceClient.ts#
- L340 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const idx = Math.floor(Math.random() * fallbacks.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L433 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = (Math.random() * 16) | 0; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/DialogueSystem.ts#
- L255 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const idx = Math.floor(Math.random() * topicData.responses.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/PersonalityEngine.ts#
- L522 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
openness: Math.max(0, Math.min(1, base.o + (Math.random() - 0.5) * 0.2)), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L523 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
conscientiousness: Math.max(0, Math.min(1, base.c + (Math.random() - 0.5) * 0.2)), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L524 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
extraversion: Math.max(0, Math.min(1, base.e + (Math.random() - 0.5) * 0.2)), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L525 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
agreeableness: Math.max(0, Math.min(1, base.a + (Math.random() - 0.5) * 0.2)), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L526 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
neuroticism: Math.max(0, Math.min(1, base.n + (Math.random() - 0.5) * 0.2)) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L906 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (quirk.triggers.includes(trigger) && Math.random() < quirk.frequency) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/ai-community-simulation.ts#
- L163 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:gossip_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L216 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:story_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-metaverse/src/ai/ai-guide-assignment.ts#
- L125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:assignment_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-metaverse/src/ai/ai-sacred-art-generation.ts#
- L1004 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seed: Math.floor(Math.random() * 2147483647), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/ambient-life-system.ts#
- L197 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
entity.position.x += (Math.random() - 0.5) * deltaTime; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L198 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
entity.position.y += (Math.random() - 0.5) * deltaTime * 0.5; // Less vertical movement - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L199 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
entity.position.z += (Math.random() - 0.5) * deltaTime; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L203 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < 0.1) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/behavior-trees.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tree_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L190 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:condition_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L202 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sequence_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L214 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:selector_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-metaverse/src/ai/celtic-druids.ts#
- L773 —
ALLOW(HIGH, rulecomment-reference)- Code:
* This replaces a Math.random() approximation; the depth here is deterministic and - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-metaverse/src/ai/interactive-consciousness-simulations.ts#
- L713 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
coordinates: config.dimensions.map((dim) => ({ dimension: dim, value: Math.random() })), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/mayan-daykeepers.ts#
- L647 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomDaySign = DAY_SIGNS[Math.floor(Math.random() * 20)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L648 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomTone = Math.floor(Math.random() * 13) + 1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L714 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
lineageDepth: authentic ? Math.floor(Math.random() * 25) + 10 : 0, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/personality-engine.ts#
- L92 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = 'personality_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L95 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = options?.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L232 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: 'hybrid_' + Math.random().toString(36).substr(2, 9), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L389 —
ALLOW(HIGH, ruleid-token-toString)- Code:
persona.id = 'personality_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-metaverse/src/ai/teachers/MultiModalComm.ts#
- L543 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const distortion = Math.random() * 0.2; // Mental noise - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L553 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
receivedSuccessfully: Math.random() > distortion, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/teachers/advanced/DreamInterpretation.ts#
- L634 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
significance: symbol ? 0.7 + Math.random() * 0.3 : 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/ai/teachers/advanced/EnergyReading.ts#
- L237 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const baseIntensity = 0.6 + Math.random() * 0.3; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L238 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const clarity = 0.5 + Math.random() * 0.5; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L292 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const balance = -0.3 + Math.random() * 0.6; // -0.3 to 0.3 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L293 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const openness = 0.4 + Math.random() * 0.6; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L358 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const flowRate = 0.5 + Math.random() * 0.5; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L387 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
severity: 0.3 + Math.random() * 0.7 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L405 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
intensity: 0.3 + Math.random() * 0.7, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L406 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
stability: 0.4 + Math.random() * 0.6, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L407 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
authenticity: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L434 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const level = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L473 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const depth = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L497 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
duration: Math.floor(Math.random() * 1800) // 0-30 minutes - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/creator/AssetLibrary.ts#
- L80 —
ALLOW(HIGH, rulecomment-reference)- Code:
* NOT use Math.random() inside the asset initializer: the catalog would - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-metaverse/src/creator/TerrainGenerator.ts#
- L106 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seed: Math.random() * 10000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L433 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.setHeight(x + halfChunk, y + halfChunk, avg + (Math.random() - 0.5) * randomRange); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L449 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.setHeight(x, y, avg + (Math.random() - 0.5) * randomRange); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L500 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
newHeight = currentHeight + (Math.random() - 0.5) * strength * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L601 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const x = Math.floor(Math.random() * this.heightMap.width); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L602 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const y = Math.floor(Math.random() * this.heightMap.height); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L612 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
rotation: rule.rotation ? Math.random() * Math.PI * 2 : 0, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L613 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
scale: rule.scale.min + Math.random() * (rule.scale.max - rule.scale.min), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/environments/CosmicSpaces.ts#
- L236 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const angle = Math.random() * Math.PI * 4; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L237 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = Math.random() * 5000 * Math.exp(angle * 0.1); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L241 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const y = (Math.random() - 0.5) * 100; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L245 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: this.getStarColor(Math.random()), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L246 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
brightness: Math.random() * 0.5 + 0.5 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L254 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L255 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const phi = Math.acos(2 * Math.random() - 1); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L256 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = Math.pow(Math.random(), 0.3) * 3000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L264 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: this.getStarColor(Math.random()), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L265 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
brightness: Math.random() * 0.5 + 0.5 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L273 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const clusterX = (Math.random() - 0.5) * 8000; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L274 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const clusterY = (Math.random() - 0.5) * 2000; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L275 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const clusterZ = (Math.random() - 0.5) * 8000; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L279 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: this.getStarColor(Math.random()), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L280 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
brightness: Math.random() * 0.5 + 0.5 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L300 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const x = config.position[0] + (Math.random() - 0.5) * config.size[0]; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L301 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const y = config.position[1] + (Math.random() - 0.5) * config.size[1]; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L302 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const z = config.position[2] + (Math.random() - 0.5) * config.size[2]; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L315 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
size: Math.random() * 50 + 20, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/environments/WeatherSystem.ts#
- L526 —
ALLOW(HIGH, ruletimer-jitter)- Code:
if (override || Math.random() < strikeChance) { - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/lilith/svc-metaverse/src/geometry/ancient-sites.ts#
- L6 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Deterministic seeded "noise". Math.random() is banned in procedural - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-metaverse/src/geometry/cosmic-spaces-routes.ts#
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const galaxyId = 'galaxy_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L114 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const nebulaId = 'nebula_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-metaverse/src/geometry/cosmic-spaces.ts#
- L28 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L39 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 500, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L42 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 6 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L43 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L44 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 7000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L55 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
age: Math.random() * 13.8, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L70 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L76 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const angle = Math.random() * Math.PI * 2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L77 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = Math.random() * radius; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L78 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const height = (Math.random() - 0.5) * radius * axisRatio; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L86 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 6 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L87 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L88 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 7000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L99 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
age: Math.random() * 13.8, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L109 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L117 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * radius * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L118 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * radius, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L119 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * radius * 2 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L121 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 6 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L122 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L123 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 7000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L133 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
age: Math.random() * 13.8, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L143 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L153 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 200, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L154 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 400 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L156 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 6 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L157 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L158 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 7000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L169 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 300, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L172 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 6 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L173 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L174 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 7000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L184 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
age: Math.random() * 13.8, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L194 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L201 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
opacity: 0.6 + Math.random() * 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L220 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L227 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
opacity: 0.4 + Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L246 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L253 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
opacity: 0.1 + Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L273 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L281 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
shells: 3 + Math.floor(Math.random() * 4), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L300 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const seed = params.seed || Math.random() * 10000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L308 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
shockWaves: 2 + Math.floor(Math.random() * 3), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L334 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = 1000 + Math.random() * 3000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L339 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * region, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L340 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * region, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L341 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * region - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L344 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
opacity: Math.random() * 0.8, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L346 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
hydrogen: 0.7 + Math.random() * 0.04, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L347 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
helium: 0.25 + Math.random() * 0.02, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L348 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
heavyElements: Math.random() * 0.05 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L368 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * volume, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L369 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * volume, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L370 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * volume - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L372 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 8 - 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L373 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L374 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 3000 + Math.random() * 10000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L375 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
luminosity: Math.random() * 0.9 + 0.1 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L403 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const starCount = 3 + Math.floor(Math.random() * 8); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L409 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.random() * 1000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L410 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: Math.random() * 1000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L411 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.random() * 1000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L413 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
magnitude: Math.random() * 4 - 1 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L487 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L695 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
intensity: 0.5 + Math.random() * 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L696 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
beamWidth: 20 + Math.random() * 40, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L697 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
wavelength: 380 + Math.random() * 380 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L711 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
wavelength: 1 + Math.random() * 1000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L713 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
color: '#' + Math.floor(Math.random() * 16777215).toString(16) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/geometry/elemental-environments.ts#
- L6 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Deterministic seeded "noise". Math.random() is banned in procedural - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-metaverse/src/geometry/nature-sanctuaries.ts#
- L24 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 1000, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L26 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 1000 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L28 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: 20 + Math.random() * 30, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L29 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
species: ['Oak', 'Maple', 'Birch', 'Ash'][Math.floor(Math.random() * 4)] - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L67 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
humidity: 0.85 + Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L68 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 25 + Math.random() * 5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L70 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: 30 + Math.random() * 40 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L73 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
rainfall: 2000 + Math.random() * 3000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L105 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: 25 + Math.random() * 35, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L106 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
species: ['Spruce', 'Pine', 'Fir', 'Larch'][Math.floor(Math.random() * 4)] - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L109 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 5 + Math.random() * 10, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L110 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
snowCoverage: 0.4 + Math.random() * 0.4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L141 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
elevation: height * (0.5 + Math.random() * 0.5), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L142 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
position: { x: Math.random() * 10000, y: 0, z: Math.random() * 10000 } - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L174 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
snowLine: 2500 + Math.random() * 1000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L182 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
precipitation: 800 + Math.random() * 400 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L198 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
type: ['Hard', 'Soft', 'Sea Fan'][Math.floor(Math.random() * 3)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L199 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
coverage: Math.random() * health - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L208 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 26 + Math.random() * 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L234 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: 10 + Math.random() * 30, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L235 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
position: { x: Math.random() * 1000, y: 0, z: Math.random() * 1000 } - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L242 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: 12 + Math.random() * 4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L286 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
speed: 1 + Math.random() * 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L287 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
direction: Math.random() * 360 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L290 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
amplitude: 2 + Math.random() * 2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L294 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: 1 + Math.random() * 4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L295 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
period: 8 + Math.random() * 8 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L308 —
ALLOW(HIGH, ruleid-token-toString)- Code:
name: 'Bird Species ' + Math.random().toString(36).substr(2, 5), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L311 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
pattern: ['migrating', 'nesting', 'foraging', 'singing'][Math.floor(Math.random() * 4)] - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L313 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
migration: { season: ['spring', 'fall'][Math.floor(Math.random() * 2)] } - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L325 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
type: ['Butterfly', 'Ant', 'Bee', 'Beetle', 'Dragonfly'][Math.floor(Math.random() * 5)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L326 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
population: Math.floor(Math.random() * 1000) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L338 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
species: ['Tuna', 'Sardine', 'Herring', 'Mackerel'][Math.floor(Math.random() * 4)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L341 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.random() * 1000, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L342 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: Math.random() * 500, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L343 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.random() * 1000 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L355 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
name: ['Deer', 'Bear', 'Wolf', 'Moose', 'Fox'][Math.floor(Math.random() * 5)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L390 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
biodiversityIndex: 0.7 + Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L436 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
temperature: -20 + Math.random() * 70, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L437 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
humidity: Math.random(), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L438 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
windSpeed: Math.random() * 50, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L439 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
precipitation: Math.random() * 100, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L440 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
cloudiness: Math.random() - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L449 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
evaporation: Math.random() * 5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L450 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
transpiration: Math.random() * 3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L451 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
precipitation: Math.random() * 10, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L452 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
runoff: Math.random() * 5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L453 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
infiltration: Math.random() * 8 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L465 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.random() * 100, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L466 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
y: Math.random() * 100, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L467 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.random() * 100 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L470 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L471 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L472 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 2 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L474 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
lifetime: Math.random() * 5 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L486 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
x: Math.cos(Math.random() * Math.PI * 2) * strength * 10, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L487 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
z: Math.sin(Math.random() * Math.PI * 2) * strength * 10 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L490 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
direction: Math.random() * 360 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L516 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
frequency: 0.5 + Math.random() * 1 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L596 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
biodiversity: 0.75 + Math.random() * 0.25, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L597 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
stability: 0.8 + Math.random() * 0.2 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-metaverse/src/geometry/svg-export.ts#
- L375 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
id:anim-${Math.random()}, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L381 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
id:anim-${Math.random()}, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/lilith/svc-micro-transaction/src/micro.ts#
- L380 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-multi-region-resilience/src/app.ts#
- L318 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Replaces Math.random() with crypto.randomInt so there's no secretly - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-native-token/src/token.ts#
- L27 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.floor(Math.random() * 1_000_000) + 10_000_000which produced - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-operational-excellence/src/health-monitor.ts#
- L1262 —
ALLOW(HIGH, rulecomment-reference)- Code:
* service id; we never call Math.random here. Production callers should - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1287 —
ALLOW(HIGH, rulecomment-reference)- Code:
// metrics without Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-payment-orchestrator/src/dunning/dunning-service.ts#
- L1629 —
ALLOW(HIGH, ruleid-token-toString)- Code:
code:RECOVER${Math.random().toString(36).substr(2, 6).toUpperCase()}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/svc-payment-orchestrator/src/wallet-verification.ts#
- L259 —
ALLOW(HIGH, rulecomment-reference)- Code:
* DO NOT replace with Math.random() or any non-cryptographic PRNG. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-safety-automation/src/app.ts#
- L16 —
ALLOW(HIGH, rulecomment-reference)- Code:
* replaces Math.random-based selection in the RedTeamAttackGenerator and - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-staking-mechanism/src/staking.ts#
- L18 —
ALLOW(HIGH, rulecomment-reference)- Code:
*0x${Math.random().toString(16).slice(2)}which (a) produced variable- - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L19 —
ALLOW(HIGH, rulecomment-reference)- Code:
* length strings (Math.random hex can be <16 chars if leading zeros are - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L20 —
ALLOW(HIGH, rulecomment-reference)- Code:
* dropped), (b) was predictable because v8's Math.random is Xorshift128+, - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-teacher-blessing/src/app.ts#
- L12 —
ALLOW(HIGH, rulecomment-reference)- Code:
* settlement receipt is available. This replaces a previous Math.random- - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L19 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Math.random is that this value is sourced from node's csprng and so - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L661 —
ALLOW(HIGH, rulecomment-reference)- Code:
// would produce; no Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-transaction-core/src/retry.ts#
- L199 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = delay * (jitterPercent / 100) * (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/svc-transaction-manager/src/app.ts#
- L15 —
ALLOW(HIGH, rulecomment-reference)- Code:
*0x${Math.random().toString(16).slice(2)}${Math.random().toString(16).slice(2)}`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/lilith/svc-tts/src/__tests__/audio-tags/audio-tag-processor-validation.ts#
- L486 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
if (Math.random() > prob) {continue;} - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/svc-webrtc/__mocks__/lib-mock.ts#
- L36 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
return Math.random() * 100; - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/lilith/svc-webrtc/src/ice-utils.ts#
- L6 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
candidate:candidate:1 1 UDP 2130706431 192.168.1.100 ${54400 + Math.floor(Math.random() * 1000)} typ host, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L11 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
candidate:candidate:2 1 UDP 1694498815 203.0.113.100 ${54400 + Math.floor(Math.random() * 1000)} typ srflx raddr 192.168.1.100 rport 54400, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/lilith/web/src/components/MetaverseCanvas.tsx#
- L498 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L500 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 20 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L563 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 2000, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L564 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 2000, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L565 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 2000 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/components/metaverse/MetaverseCanvas.tsx#
- L95 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
position={[(Math.random() - 0.5) * 20, 0.1, (Math.random() - 0.5) * 20]} - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L275 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
position={[(Math.random() - 0.5) * 50, 2, (Math.random() - 0.5) * 50]} - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L282 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
position={[(Math.random() - 0.5) * 50, 5, (Math.random() - 0.5) * 50]} - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/design-system/primitives/Input/Input.tsx#
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const inputId = id ||input-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/design-system/primitives/Select/Select.tsx#
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const selectId = id ||select-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/features/annotations/TextHighlighting.tsx#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:highlight-${now.getTime()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/features/veilborn/WeaveConspiracyEngine.ts#
- L322 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...playerIds].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/features/zettelkasten/AtomicNote.tsx#
- L337 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sequence = Math.random().toString(36).substring(2, 4); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/features/zettelkasten/KnowledgeGraph.tsx#
- L304 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: n.x ?? this.centerX + (Math.random() - 0.5) * 400, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L305 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: n.y ?? this.centerY + (Math.random() - 0.5) * 400, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/lib/api-client-mock-chat.ts#
- L46 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return items[Math.floor(Math.random() * items.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/lilith/web/src/lib/content-browser-3d.ts#
- L456 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
positions[i * 3] = (Math.random() - 0.5) * 50; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L458 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
positions[i * 3 + 2] = (Math.random() - 0.5) * 50; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/lib/cross-platform-sync-connection.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${message.type}_${message.timestamp}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/cross-platform-sync.ts#
- L612 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deviceId =device_${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/gamification.ts#
- L108 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:group-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/persona-avatar-aura.ts#
- L15 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L16 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const phi = Math.random() * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
apps/lilith/web/src/lib/progress-store.ts#
- L164 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deviceId: get()?._generateDeviceId() ||web_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L610 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).substr(2, 9) + Date.now().toString(36); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L614 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnweb_${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/seamless-auth-store.ts#
- L101 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deviceId: get()?._generateDeviceId() ||web_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L662 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substr(2, 5); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/social-features.ts#
- L53 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:thread-${Math.random().toString(16).slice(2, 8)}, topic, tags, posts: [] }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L66 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:res-${Math.random().toString(16).slice(2, 8)}, title, contributors: [], hypothesis, status: 'draft' }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L74 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:ceremony-${Math.random().toString(16).slice(2, 8)}, name, steps }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:music-${Math.random().toString(16).slice(2, 8)}, mood, seed: Math.random().toString(36).slice(2, 8) }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:vision-${Math.random().toString(16).slice(2, 8)}, userId, entry, insights }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/spatial-audio-3d.ts#
- L503 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 100, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L505 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 100 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/lilith/web/src/lib/teacher-training.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { id:cert-${Math.random().toString(16).slice(2, 8)}, name, criteria, awardedTo: [] }; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L60 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:module-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/lib/virtual-retreats.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
forumId:forum-${Math.random().toString(16).slice(2, 8)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =session-${Math.random().toString(16).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/lilith/web/src/pwa/background-sync.ts#
- L575 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return delay + Math.random() * 1000; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/maat/api-gateway/src/app.ts#
- L214 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/maat/api-gateway/src/middleware/rate-limit.ts#
- L106 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const member =${now}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/maat/intel/src/lib/price-monitoring-data.ts#
- L21 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = () => 1 + (Math.random() - 0.5) * 0.06; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/metis/api-gateway/src/proxy/backend-proxy.ts#
- L215 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * baseDelay; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/metis/web/src/lib/authoring-data.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/metis/worker/src/queues/job-queue.ts#
- L342 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * backoffDelay * 0.1; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/nyx/api/src/middleware/request-id.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/education/challenges/orbital-mechanics/src/challenge-service.ts#
- L174 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L233 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
? mcGenerators[Math.floor(Math.random() * mcGenerators.length)] - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L237 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
generator = generators[Math.floor(Math.random() * generators.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts#
- L203 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
planet = ['mars', 'venus'][Math.floor(Math.random() * 2)] as CelestialBodyId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L206 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
planet = ['mercury', 'mars', 'jupiter'][Math.floor(Math.random() * 3)] as CelestialBodyId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L289 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
semiMajorAxisAU = [1, 2, 4][Math.floor(Math.random() * 3)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/nyx/education/challenges/orbital-mechanics/src/escape-velocity.ts#
- L324 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const body1 = bodies[Math.floor(Math.random() * bodies.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L325 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
let body2 = bodies[Math.floor(Math.random() * bodies.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L327 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
body2 = bodies[Math.floor(Math.random() * bodies.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L364 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
calculateProperty = properties[Math.floor(Math.random() * properties.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/nyx/education/challenges/orbital-mechanics/src/orbit-classification.ts#
- L457 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const pointType = ['periapsis', 'apoapsis', 'radius'][Math.floor(Math.random() * 3)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/nyx/education/challenges/star-identification/src/challenge-service.ts#
- L441 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
availableConstellations[Math.floor(Math.random() * availableConstellations.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L482 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const star = availableStars[Math.floor(Math.random() * availableStars.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L697 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/education/challenges/star-identification/src/coordinate-pointing.ts#
- L212 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
: NAMED_STARS[Math.floor(Math.random() * NAMED_STARS.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L219 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const raOffset = (Math.random() - 0.5) * 20; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L220 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const decOffset = (Math.random() - 0.5) * 20; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L363 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const notable = suitableCoords[Math.floor(Math.random() * suitableCoords.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/nyx/education/demos/distance-ladder/src/parallax.ts#
- L426 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L427 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
apps/nyx/star-map/src/bookmarks/bookmarks.ts#
- L501 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbm*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L508 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnfolder*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/components/LoadingScreen.tsx#
- L36 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
width: Math.random() * 2 + 1 + 'px', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L37 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
height: Math.random() * 2 + 1 + 'px', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L38 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
backgroundColor:rgba(255, 255, 255, ${Math.random() * 0.5 + 0.3}), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L40 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
left: Math.random() * 100 + '%', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L41 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
top: Math.random() * 100 + '%', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L42 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
animation:pulse ${Math.random() * 3 + 2}s ease-in-out infinite, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L43 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
animationDelay: Math.random() * 2 + 's', - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/filters/filters.ts#
- L1067 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${type}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1935 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:custom-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/journal/journal.ts#
- L871 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = (Math.random() * 16) | 0; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1130 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return prompts[Math.floor(Math.random() * prompts.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/modes/discovery.ts#
- L974 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const obj = allObjects[Math.floor(Math.random() * allObjects.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L986 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
let random = Math.random() * totalWeight; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/modes/eclipse/eclipse.ts#
- L465 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnecl*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/modes/orrery/asteroid-belt.ts#
- L914 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/modes/orrery/lagrange-points.ts#
- L938 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/modes/orrery/moon-system.ts#
- L840 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/modes/orrery/planet-detail.ts#
- L996 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).substring(2, 11); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/modes/overview-effect/overview-effect.ts#
- L745 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const index = Math.floor(Math.random() * quotes.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/modes/pale-blue-dot/pale-blue-dot.ts#
- L621 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const index = Math.floor(Math.random() * facts.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/modes/transits/iss.ts#
- L426 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returniss*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/navigation/view-presets.ts#
- L553 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =custom-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L695 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:imported-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/notifications/notifications.ts#
- L303 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/astrology.ts#
- L888 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).substring(2, 11); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/constellations.ts#
- L1780 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/grids.ts#
- L968 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/markers.ts#
- L615 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/orbits.ts#
- L885 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/overlays/you-are-here.ts#
- L690 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomIndex = Math.floor(Math.random() * scale.facts.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/planning/observation-planner.ts#
- L1053 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/scenes/StarMapScene.tsx#
- L32 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L33 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const phi = Math.acos(2 * Math.random() - 1); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L34 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const radius = 500 + Math.random() * 9500; // 500 to 10000 units - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L41 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const temp = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L44 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3] = 0.7 + Math.random() * 0.3; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L45 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 1] = 0.7 + Math.random() * 0.3; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L51 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 2] = 0.9 + Math.random() * 0.1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L55 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 1] = 0.9 + Math.random() * 0.1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L56 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 2] = 0.6 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L60 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 1] = 0.6 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L61 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 2] = 0.3 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L65 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 1] = 0.3 + Math.random() * 0.3; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L66 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
colors[i * 3 + 2] = 0.2 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L70 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
sizes[i] = Math.random() * settings.starPointSize + 0.5; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/search/query-builder.ts#
- L382 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnode-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L389 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnquery-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/spacecraft/mission-timeline.ts#
- L342 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntl*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/spacecraft/visualization.ts#
- L771 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnviz-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/time/event-timeline.ts#
- L762 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevent*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/time/time-controls.ts#
- L507 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntime*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/tonight/tonight.ts#
- L718 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 90 - Math.abs(location.latitude) + Math.random() * 20 - 10; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1045 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const transitAltitude = 90 - Math.abs(location.latitude - 30) + Math.random() * 20; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
apps/nyx/star-map/src/ui/context-menu.ts#
- L354 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:separator-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/ui/time-slider.ts#
- L344 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnslider*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/star-map/src/utils/index.ts#
- L137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/nyx/tools/orbit-determination/src/index.ts#
- L1997 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1998 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
apps/nyx/vr-planetarium/src/scenes/PlanetariumScene.tsx#
- L209 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
apps/oshun/admin/src/middleware.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/admin/admin-cross-links.ts#
- L543 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexplicit:${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/admin/admin-entity-comments.ts#
- L326 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncomment-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/admin/admin-investigation-bundle-store.ts#
- L524 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbundle-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/admin/admin-notifications-store.ts#
- L252 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/admin/saved-views-store.ts#
- L305 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnview-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/bff/src/routes/admin-session.ts#
- L250 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnadmin-sess-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/mobile/src/notifications/registration.ts#
- L768 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id =web-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L775 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Platform.OS}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/domains/arete/AreteBalance.tsx#
- L450 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const angle = (Math.PI * 2 * i) / 24 + (Math.random() - 0.5) * 0.4; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/components/domains/arete/AreteCoach.tsx#
- L341 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const content = responses[Math.floor(Math.random() * responses.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/oshun/web/src/components/domains/arete/AreteGoalSystem.tsx#
- L1658 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
score: i < 7 ? 0.5 + Math.random() * 0.4 : 0, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/oshun/web/src/components/domains/arete/AreteGoals.tsx#
- L172 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * 10; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/components/domains/arete/AreteHabits.tsx#
- L194 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
ccx:${(Math.random() - 0.5) * 200}px, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/components/domains/arete/AreteJournalSystem.tsx#
- L1792 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
setCurrentPrompt(pool[Math.floor(Math.random() * pool.length)]); - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/oshun/web/src/components/domains/arete/AreteTime.tsx#
- L364 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const dx = (Math.random() - 0.5) * 20; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/components/domains/nyx/NyxSonification.tsx#
- L1243 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
spectralClass: ['A', 'F', 'G', 'K', 'M'][Math.floor(Math.random() * 5)] ?? 'G', - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1245 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
['#CAD7FF', '#F8F7FF', '#FFF4EA', '#FFD2A1', '#FFCC6F'][Math.floor(Math.random() * 5)] ?? - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/oshun/web/src/components/domains/veritas/VeritasClaimChecker.tsx#
- L1938 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
color: colors[Math.floor(Math.random() * colors.length)] ?? ACCENT, - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/oshun/web/src/components/domains/veritas/VeritasKnowledgeGraph.tsx#
- L180 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: n.x * (width / 800) + (Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L181 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: n.y * (height / 600) + (Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/components/domains/veritas/VeritasSourceDirectory.tsx#
- L563 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const gradId =arc-grad-${score}-${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx#
- L3401 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
color: colors[Math.floor(Math.random() * colors.length)] ?? tokens.domainAccents.tara, - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L3403 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotSpeed: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L3407 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
(['square', 'circle', 'triangle'] as const)[Math.floor(Math.random() * 3)] ?? 'square', - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/oshun/web/src/components/studio/StudioAccessibilityGovernanceWorkspace.tsx#
- L497 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioActivityChangeFeedsWorkspace.tsx#
- L390 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioApiGatewayBffCompositionWorkspace.tsx#
- L511 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioAssetPreviewPipelineWorkspace.tsx#
- L419 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L633 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdPreviewId =prv-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioAuditComplianceSurfacesWorkspace.tsx#
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioAuthenticationArchitectureWorkspace.tsx#
- L165 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBackgroundJobsProgressUxWorkspace.tsx#
- L488 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L814 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdJobId =job-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L828 —
ALLOW(HIGH, ruleid-token-toString)- Code:
correlationId:corr-${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBackupDisasterRecoveryUxWorkspace.tsx#
- L613 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaAssetInterchangeFormatsWorkspace.tsx#
- L1261 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sampleId:obs-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1311 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1331 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:format-history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaBlenderBridgeCommandsWorkspace.tsx#
- L1373 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaBridgeProtocolAndSessionsWorkspace.tsx#
- L1295 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:session-history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaBuildTemplatesWorkspace.tsx#
- L855 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2180 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:import-comment-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaCliSurfacesWorkspace.tsx#
- L1047 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:cli-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1066 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:cli-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1082 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cli-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaContentAddressableBuildCacheWorkspace.tsx#
- L784 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cache-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2132 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:import-comment-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaCppSdkWorkspace.tsx#
- L1050 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:cpp-sdk-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1087 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:cpp-sdk-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:cpp-sdk-change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1121 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cpp-sdk-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1655 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cpp-sdk-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1723 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cpp-sdk-stream-reconnect-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1863 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:cpp-sdk-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaCrossDomainAssetIngestionWorkspace.tsx#
- L1017 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:cross-domain-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1034 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cross-domain-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1046 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:cross-domain-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1951 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:cross-domain-collab-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaDaVinciIntegrationWorkspace.tsx#
- L1105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:dv-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1124 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:dv-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1191 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:dv-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaFormatRegistryWorkspace.tsx#
- L1192 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:fmt-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1212 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:fmt-history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2427 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sampleId:fmt-observability-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGameplayRuntimeAiBehaviorWorkspace.tsx#
- L953 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:ai-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L970 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:ai-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L981 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:ai-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:ai-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1539 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGameplayRuntimeCombatWorkspace.tsx#
- L878 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:combat-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L895 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:combat-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L906 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:combat-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGameplayRuntimeInputWorkspace.tsx#
- L600 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGameplayRuntimeInventoryWorkspace.tsx#
- L885 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
entryId:inventory-audit-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L911 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:inventory-telemetry-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGameplayRuntimeSaveLoadWorkspace.tsx#
- L745 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaGodotBridgeCommandsWorkspace.tsx#
- L1213 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaHoudiniIntegrationWorkspace.tsx#
- L1087 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:hd-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1106 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:hd-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1129 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:hd-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaInterchangeAssetCacheWorkspace.tsx#
- L1058 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:cache-history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1073 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:cache-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2094 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sampleId:cache-obs-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaInterchangeBatchConversionWorkspace.tsx#
- L1195 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:batch-history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1210 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:batch-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaLiveEngineBridgesWorkspace.tsx#
- L1153 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaLoreToEngineCompilationWorkspace.tsx#
- L1185 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:lore-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1203 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:lore-change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1220 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:lore-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1481 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:lore-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2136 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:lore-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaMetaQuestFeaturesWorkspace.tsx#
- L929 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:metaquest-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L946 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:metaquest-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L958 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:metaquest-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1701 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:metaquest-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1989 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:metaquest-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaMotionCaptureSkeletonManagementWorkspace.tsx#
- L1130 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
entryId:skeleton-audit-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1143 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:skeleton-telemetry-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1157 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
snapshotId:skeleton-snapshot-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1881 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:skeleton-stream-event-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L2172 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
commentId:skeleton-comment-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioBellonaMotionCaptureStreamingWorkspace.tsx#
- L991 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
entryId:mocap-audit-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1007 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:mocap-telemetry-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1018 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
snapshotId:mocap-snapshot-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1726 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:stream-event-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1983 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
commentId:mocap-comment-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioBellonaMotionRetargetingWorkspace.tsx#
- L1090 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:motion-retargeting-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1117 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:motion-retargeting-change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:motion-retargeting-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1524 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const snapshotId =motion-retargeting-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaOpenUsdLayerCompositionWorkspace.tsx#
- L763 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaOpenUsdMaterialXWorkspace.tsx#
- L719 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaOpenUsdStageManagementWorkspace.tsx#
- L765 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(16).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaOpenUsdVariantManagementWorkspace.tsx#
- L760 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaRecordingAndPlaybackWorkspace.tsx#
- L1094 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:recording-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1118 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:recording-change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1139 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:recording-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1525 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const snapshotId =recording-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaRenderQueueManagementWorkspace.tsx#
- L1027 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1061 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1077 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1095 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:stream-event-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2240 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:stream-reconnect-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2380 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaSharedXrCapabilitiesWorkspace.tsx#
- L960 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
entryId:sharedxr-audit-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L972 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
snapshotId:sharedxr-snapshot-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1001 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:sharedxr-telemetry-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1321 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:stream-event-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L1576 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
commentId:sharedxr-comment-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx#
- L759 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaTypeScriptSdkWorkspace.tsx#
- L1259 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:sdk-audit-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1279 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:sdk-change-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1296 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:sdk-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1926 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:sdk-audit-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1938 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:sdk-change-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1949 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:sdk-telemetry-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaUnityBridgeCommandsWorkspace.tsx#
- L1225 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaUnrealBridgeCommandsWorkspace.tsx#
- L1192 —
ALLOW(HIGH, ruleid-token-toString)- Code:
historyId:history-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaVirtualProductionCameraTrackingWorkspace.tsx#
- L996 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:camera-tracking-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1013 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:camera-tracking-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1353 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:camera-tracking-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1675 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:camera-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1943 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaVirtualProductionGenlockTimecodeWorkspace.tsx#
- L961 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:genlock-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L978 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:genlock-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1314 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:genlock-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1598 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:genlock-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1685 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:genlock-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaVirtualProductionIcvfxWorkspace.tsx#
- L968 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:icvfx-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L985 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:icvfx-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1297 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:icvfx-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaVirtualProductionLedWallWorkspace.tsx#
- L996 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:led-wall-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1013 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:led-wall-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1347 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:led-wall-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaVisionOsFeaturesWorkspace.tsx#
- L912 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:visionos-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L929 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:visionos-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L941 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:visionos-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1707 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:visionos-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2068 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:visionos-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioBellonaXrPlatformSupportWorkspace.tsx#
- L933 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:xr-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L950 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:xr-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L962 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:xr-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1762 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:xr-stream-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1850 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:xr-comment-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioColorSystemWorkspace.tsx#
- L162 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioCommentingAnnotationSystemWorkspace.tsx#
- L442 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L705 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdAnnotationId =ann-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioComplexInteractionPatternsWorkspace.tsx#
- L169 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioComponentPrimitivesWorkspace.tsx#
- L166 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioCrossDomainEntityModelWorkspace.tsx#
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioDataRetentionLifecycleControlsWorkspace.tsx#
- L557 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioDesignLanguageWorkspace.tsx#
- L742 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioEnterpriseTenantIsolationWorkspace.tsx#
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioExperimentationFeatureFlagsWorkspace.tsx#
- L511 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioFileMediaIngestionWorkspace.tsx#
- L444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L669 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdIngestionId =ing-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorCharacterModelingWorkspace.tsx#
- L994 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:character-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1010 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:character-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1022 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:character-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1033 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:character-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1781 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:character-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorCultureModelingWorkspace.tsx#
- L814 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:culture-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L832 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:culture-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L844 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:culture-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L855 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:culture-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorEconomyModelingWorkspace.tsx#
- L766 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:${name}-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioHathorFactionModelingWorkspace.tsx#
- L658 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:${name}-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioHathorGeographyModelingWorkspace.tsx#
- L1190 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:geo-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1206 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:geo-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1218 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:geo-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1229 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:geo-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1909 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:geo-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorLegalSystemsModelingWorkspace.tsx#
- L780 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
eventId:${name}-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
apps/oshun/web/src/components/studio/StudioHathorLocationModelingWorkspace.tsx#
- L1151 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:location-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1167 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:location-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1179 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:location-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1190 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:location-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1911 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:location-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:location-collab-comment-import-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorQuestAuthoringWorkspace.tsx#
- L1095 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:quest-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1109 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:quest-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1126 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:quest-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1138 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:quest-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1732 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:quest-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1942 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:quest-collab-comment-import-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorTimelineModelingWorkspace.tsx#
- L1082 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:timeline-audit-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1096 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:timeline-change-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1113 —
ALLOW(HIGH, ruleid-token-toString)- Code:
telemetryId:timeline-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:timeline-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1755 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:timeline-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1971 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:timeline-collab-comment-import-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioHathorWorldConfigurationWorkspace.tsx#
- L819 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``world-collab-comment-import-${Date.now()}-${Math.random().toString(16).slice(2, 8)}
, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``world-collab-comment-import-${Date.now()}-${Math.random().toString(16).slice(2, 8)}
- L1261 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snapshotId:world-configuration-snapshot-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1288 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:world-configuration-audit-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1304 —
ALLOW(HIGH, ruleid-token-toString)- Code:
changeId:world-configuration-change-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1322 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:world-configuration-telemetry-${Date.now()}-${Math.random().toString(16).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2028 —
ALLOW(HIGH, ruleid-token-toString)- Code:
commentId:world-collab-comment-${Date.now()}-${Math.random().toString(16).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioInformationArchitectureWorkspace.tsx#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioInternationalizationLocalizationWorkspace.tsx#
- L493 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioLaunchReadinessGovernanceDashboard.tsx#
- L1225 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioMetricsAnalyticsInstrumentationWorkspace.tsx#
- L496 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L770 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdMetricId =met-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioMultiProjectOperationsWorkspace.tsx#
- L174 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioNavigationCommandWorkspace.tsx#
- L166 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioNotificationCenterWorkspace.tsx#
- L376 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioObservabilityOperationalDashboardsWorkspace.tsx#
- L524 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L815 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdSignalId =sig-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioPerformanceBudgetsWorkspace.tsx#
- L485 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioPresenceCursorSystemsWorkspace.tsx#
- L397 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioRbacPermissionPolicyUxWorkspace.tsx#
- L171 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioRealTimeCollaborationSubstrateWorkspace.tsx#
- L381 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioResilienceErrorUxWorkspace.tsx#
- L449 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L755 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdIncidentId =inc-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L769 —
ALLOW(HIGH, ruleid-token-toString)- Code:
correlationId:corr-${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioReviewApprovalWorkflowsWorkspace.tsx#
- L698 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1043 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const createdReviewId =rev-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioSdkDocumentationIntegrationWorkspace.tsx#
- L596 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioSearchDiscoveryWorkspace.tsx#
- L166 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioSecurityHardeningProgramWorkspace.tsx#
- L521 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioSessionDeviceManagementWorkspace.tsx#
- L175 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioSpacingLayoutWorkspace.tsx#
- L166 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioTypographyWorkspace.tsx#
- L157 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioWebhooksExternalAutomationWorkspace.tsx#
- L482 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/components/studio/StudioWorkspaceContextSwitchingWorkspace.tsx#
- L203 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/design-system/components/Confetti.tsx#
- L208 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const angle = ((-90 + (Math.random() - 0.5) * config.spread * 2) * Math.PI) / 180; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L215 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
vx: Math.cos(angle) * speed + (Math.random() - 0.5) * 15, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L218 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotationSpeed: (Math.random() - 0.5) * 15, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/design-system/components/HabitCheckbox.tsx#
- L54 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
angle: (360 / count) * i + (Math.random() - 0.5) * 40, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/design-system/components/MiniChart.tsx#
- L206 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const gradientId =minichart-gradient-${useMemo(() => Math.random().toString(36).slice(2, 8), [])}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/design-system/components/OverlaySheet.tsx#
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const titleId = useRef(oshun-sheet-title-${Math.random().toString(36).slice(2, 8)}).current; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/oshun/web/src/lib/api-client.ts#
- L113 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/oshun/web/src/lib/arete/arete-simulation-data.ts#
- L1827 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rate: 0.55 + (i / 90) * 0.2 + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1859 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
averageDifficulty: 2.8 - (i / 30) * 0.4 + (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1897 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
averageVelocity: 2.0 + (i / 12) * 1.5 + (Math.random() - 0.5) * 0.5, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1907 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const score = 0.2 + (i / 90) * 0.3 + (Math.random() - 0.5) * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1974 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.65 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
apps/oshun/web/src/lib/nyx/nyx-renderer-simulation.ts#
- L47 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const fps = 58.5 + Math.sin(phase) * 3.5 + (Math.random() - 0.5) * 1.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/oshun/web/src/lib/websocket-client.ts#
- L378 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/oshun/web/src/middleware.ts#
- L111 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/psyche/admin/src/app/dashboard/knowledge/sources/new/page.tsx#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sourceId =src*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/psyche/admin/src/app/dashboard/knowledge/upload/page.tsx#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { documentId:doc*${Date.now()}*${Math.random().toString(36).substr(2, 9)}}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L117 —
ALLOW(HIGH, ruleid-token-toString)- Code:
fileId:file*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/psyche/admin/src/lib/aria.ts#
- L226 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/psyche/admin/src/lib/utils.ts#
- L144 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 11); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/sophia/ingestion/src/pipeline/ingestion-pipeline.ts#
- L159 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const jobId = createJobId(job-${Date.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L280 —
ALLOW(HIGH, ruleid-token-toString)- Code:
documentId: createDocumentId(doc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L391 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entityId:entity-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/sophia/workbench/src/components/Modal.tsx#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generatedTitleId = titleId ??modal-title-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/tara/api/src/middleware/request-id.ts#
- L18 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/tara/mobile/src/store/meditationStore.ts#
- L272 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
categoryMeditations[Math.floor(Math.random() * categoryMeditations.length)] ?? meditations[0]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/tara/web/e2e/fixtures/test-data.ts#
- L218 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returne2e-test-${Date.now()}-${Math.random().toString(36).slice(2)}@tara.app; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/agents/src/communication/message-bus.ts#
- L416 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createMessageId(msg*${Date.now()}*${Math.random().toString(36).slice(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/agents/src/core/base-agent.ts#
- L601 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/agents/src/orchestration/orchestrator.ts#
- L293 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const taskId = createTaskId(task*${Date.now()}*${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L663 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/ai-workers/src/workers/base/helpers.ts#
- L155 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/analytics/src/collectors/realtime.ts#
- L264 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/analytics/src/user/engagement.ts#
- L124 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createEventId(evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/api/src/domain/sandbox.ts#
- L1012 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const errorCode = errorCodes[Math.floor(Math.random() * errorCodes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/api/src/interfaces/http/routes/v1/airteltigo-payments.ts#
- L157 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const transactionId =AT*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const transactionId =ATD*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L408 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const refundTxnId =ATR*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/api/src/interfaces/http/routes/v1/payments.ts#
- L164 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const externalId =pay*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L411 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const externalId =ref*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/api/src/interfaces/http/routes/v1/tips.ts#
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/api/src/interfaces/http/routes/v1/vodafone-payments.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const conversationId =c2b*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L144 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const transactionRef =VF*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L235 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const conversationId =query*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L302 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const conversationId =b2c*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L303 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const transactionRef =REF*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const conversationId =rev*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/audio/src/providers/elevenlabs.ts#
- L407 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/audio/src/providers/ghana-nlp.ts#
- L210 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/cms/src/articles/article-service.ts#
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnart*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L232 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L320 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L359 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L456 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/cms/src/reviews/review-service.ts#
- L131 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/cms/src/scheduling/scheduler-service.ts#
- L306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L364 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L424 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rev*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/ingestion/src/utils/backoff.ts#
- L40 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = 1 + (Math.random() - 0.5) * 2 * jitterFactor; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
apps/veritas/mobile/src/services/offline.ts#
- L402 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${type}_${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/mobile/src/stores/app-store.ts#
- L192 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:error*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/nlp/src/services/base/helpers.ts#
- L125 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/notifications/src/channels/email.ts#
- L134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
email_${Date.now()}_${Math.random().toString(36).slice(2, 7)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/notifications/src/channels/in-app.ts#
- L102 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createNotificationId(inapp*${Date.now()}*${Math.random().toString(36).slice(2, 7)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L394 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const connectionId =conn*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/notifications/src/scheduling/queue.ts#
- L135 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createNotificationId(notif*${Date.now()}*${Math.random().toString(36).slice(2, 7)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/calendar/calendar.ts#
- L102 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncal*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/server.ts#
- L173 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:post*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/services/instagram-reels-automation.ts#
- L1663 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const failId =igfail${Date.now()}_${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/services/instagram-stories-automation.ts#
- L671 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return templates[Math.floor(Math.random() * templates.length)] ?? null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/social/src/services/tiktok-analytics.ts#
- L1977 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tiktokalert${Date.now()}_${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/services/tiktok-automation.ts#
- L1197 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/services/unified-scheduler.ts#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/social/src/services/youtube-shorts-automation.ts#
- L927 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/providers/did.ts#
- L219 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/video/src/providers/heygen.ts#
- L161 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/video/src/providers/tavus.ts#
- L167 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/veritas/video/src/services/advertising/ad-service.ts#
- L838 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L936 —
ALLOW(HIGH, ruleid-token-toString)- Code:
creativeId:req*${unit.id}*${Date.now()}_${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/advertising/youtube-monetization.ts#
- L859 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/avatar-profiles.ts#
- L770 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return greetings[Math.floor(Math.random() * greetings.length)] ?? null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L781 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return intro[Math.floor(Math.random() * intro.length)] ?? null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L792 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return outro[Math.floor(Math.random() * outro.length)] ?? null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/video/src/services/broll.ts#
- L130 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbroll*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/broll/library.ts#
- L481 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnclip*${Date.now()}*${Math.random().toString(36).substr(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/broll/prompt-generator.ts#
- L320 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnprompt*${Date.now()}*${Math.random().toString(36).substr(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/instagram-reels.ts#
- L583 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =igreel${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/live-stream-content-mix.ts#
- L425 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/live-stream.ts#
- L409 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/payments/payment-providers.ts#
- L466 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/personas.ts#
- L717 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return greetings[Math.floor(Math.random() * greetings.length)] ?? ''; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L728 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return signOffs[Math.floor(Math.random() * signOffs.length)] ?? ''; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/video/src/services/podcast/audio-composition.ts#
- L405 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/podcast/discussion-generator.ts#
- L382 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnturn*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L414 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return arr[Math.floor(Math.random() * arr.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/video/src/services/podcast/mixing-pipeline.ts#
- L631 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/podcast/shows.ts#
- L491 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/repurposing/pipeline.ts#
- L344 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/scheduler/production-scheduler.ts#
- L361 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/scheduler/video-analytics.ts#
- L331 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/tiktok.ts#
- L490 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = templates[Math.floor(Math.random() * templates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L840 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = templates[Math.floor(Math.random() * templates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/veritas/video/src/services/video-pipeline.ts#
- L367 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/video/src/services/youtube-shorts.ts#
- L640 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ytshorts${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/web/src/lib/behavior-tracking/tracker.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/web/src/lib/offline/indexed-db.ts#
- L557 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/veritas/web/src/lib/offline/sync-manager.ts#
- L217 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return delay + Math.random() * 1000; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/yemaya/api/__tests__/integration/mocks.ts#
- L279 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
if (failureRate > 0 && Math.random() < failureRate) { - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/yemaya/api/__tests__/integration/setup.ts#
- L251 —
ALLOW(HIGH, ruletest-fixture-file)- Code:
email: () =>test-${Date.now()}-${Math.random().toString(36).slice(2)}@example.com, - Rationale: File lives in tests/fixtures/mocks/storybook — test scaffolding, not production runtime; randomness is acceptable for fake data.
- Code:
apps/yemaya/api/src/middleware/gdpr-compliance.ts#
- L580 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =BREACH-${Date.now()}-${Math.random().toString(36).substring(2, 8).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1066 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =DPIA-${Date.now()}-${Math.random().toString(36).substring(2, 8).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1097 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const riskId =RISK-${Date.now()}-${Math.random().toString(36).substring(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1286 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ROPA-${Date.now()}-${Math.random().toString(36).substring(2, 8).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1610 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =CONSENT-${Date.now()}-${Math.random().toString(36).substring(2, 8).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/middleware/request-id.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 15); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L128 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const suffix = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/routes/auth.ts#
- L452 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomSuffix = suffixes[Math.floor(Math.random() * suffixes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/yemaya/api/src/services/onboarding.ts#
- L778 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:onboarding*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/services/preferences.ts#
- L1354 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:prefs*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/services/proxy.ts#
- L222 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return Math.floor(Math.random() * exponential); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/yemaya/api/src/services/schedule-export.ts#
- L175 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/services/webhook.ts#
- L628 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return Math.floor(Math.random() * exponential); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
apps/yemaya/api/src/services/websocket.ts#
- L113 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnws*${Date.now()}*${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/api/src/websocket/handler.ts#
- L767 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L885 —
ALLOW(HIGH, rulecomment-reference)- Code:
* const jitter = delay * 0.2 * Math.random(); - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
apps/yemaya/studio-desktop/src/renderer/lib/projects.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnproj*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-desktop/src/renderer/pages/ProjectPage.tsx#
- L327 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:panel*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L330 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:shot*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1003 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:storyboard*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1175 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:storyboard*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/components/layout/Panel.tsx#
- L349 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const panelId = useRef(id ??panel-${Math.random().toString(36).substring(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/hooks/useBackgroundSync.ts#
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsync-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/hooks/useLayoutPersistence.ts#
- L267 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =preset-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/lib/accessibility.ts#
- L425 —
ALLOW(HIGH, ruleid-token-toString)- Code:
idRef.current =${prefix}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/lib/pwa.ts#
- L108 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =sync-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/lib/routeAnalytics.ts#
- L102 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId =session-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/aiStore.ts#
- L408 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/appStore.ts#
- L274 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =notification-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/bellonaStore.ts#
- L379 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbellona-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/collaborationStore.ts#
- L418 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L439 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return colors[Math.floor(Math.random() * colors.length)] ?? '#3b82f6'; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
apps/yemaya/studio-web/src/stores/hathorStore.ts#
- L451 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnhathor-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/isisStore.ts#
- L355 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnisis-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/optimistic.ts#
- L109 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generateId = () =>${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L421 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generateId = () =>conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L591 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generateId = () =>queue-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
apps/yemaya/studio-web/src/stores/sophiaStore.ts#
- L311 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsophia-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
docs/training/examples/civitai-examples.ts#
- L996 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = Math.min(delay * 2 + Math.random() * 1000, maxDelayMs); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
docs/training/examples/comfyui-examples.ts#
- L849 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = Math.min(delay * 2 + Math.random() * 1000, 30000); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
docs/training/examples/elevenlabs-examples.ts#
- L852 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 0.2 * delay; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
docs/training/exercises/02-intermediate-solutions.ts#
- L254 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * Math.random() * 0.25; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aglaea/avatar-creation/src/avatar-generator.ts#
- L292 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnavatar*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/database/src/read-replica.ts#
- L278 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aglaea/enhanced-skin-analysis/src/privacy-engine.ts#
- L28 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const u = Math.random() - 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L50 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L51 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aglaea/gamification/src/implementation.ts#
- L596 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:txn-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/generative-design/src/design-engine.ts#
- L634 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:design-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/memory-system/src/memory-system.ts#
- L345 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:mem-${Date.now()}-${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/multi-modal-input/src/multi-modal-input.ts#
- L187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:txt-${Date.now()}-${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L214 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:img-${Date.now()}-${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L248 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:vox-${Date.now()}-${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/outfit-sharing/src/implementation.ts#
- L326 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:post-${platformId}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/sdk/src/batch.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbatch-${batchIdCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/sdk/src/http-client.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/sdk/src/retry.ts#
- L56 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * baseDelayMs; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aglaea/sdk/src/websocket.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg-${wsMessageCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/smart-mirror/src/mirror-protocol.ts#
- L347 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId:session*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/smart-mirror/src/user-management.ts#
- L336 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =guest*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/testing/src/chaos.ts#
- L39 —
ALLOW(HIGH, rulecomment-reference)- Code:
* When provided, uses a simple seeded PRNG. When omitted, uses Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aglaea/unified-profile/src/profile-aggregator.ts#
- L395 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aglaea/virtual-tryon-fashion/src/garment-visualization.ts#
- L802 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const xOffset = width * 0.02 * (Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aglaea/wardrobe-management/src/organization.ts#
- L628 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncol*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/airmid/api/src/database-connectors.ts#
- L1338 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * baseDelay; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/airmid/ml/src/advanced-learning.ts#
- L372 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L373 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/airmid/ml/src/generative-models.ts#
- L174 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L175 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/airmid/ml/src/graph-neural-networks.ts#
- L684 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...triples].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L696 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomEntity = entityList[Math.floor(Math.random() * entityList.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/airmid/quality/src/dna-barcoding-data.ts#
- L198 —
ALLOW(HIGH, rulecomment-reference)- Code:
* alternate bases. Avoids any reliance on Math.random for full determinism. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aja/asset-storage/src/asset-manager.ts#
- L710 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/asset-storage/src/automatic-archival.ts#
- L650 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnjob_${Date.now().toString(36)}${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L654 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntask_${Date.now().toString(36)}${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/asset-storage/src/cdn-distribution.ts#
- L305 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returninv_${Date.now().toString(36)}${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/avatar-integration/src/fitness-pipeline.ts#
- L1034 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
let selectedCue = cues[Math.floor(Math.random() * cues.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aja/batch-inference/src/memory-manager.ts#
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =pool*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L91 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =pool*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/bone-mapping-ui/src/types.ts#
- L1105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/distributed-workers/src/kubernetes.ts#
- L238 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const jobId =job-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L296 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const workerId =worker-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/domain-motion-pipelines/src/dance-pipeline.ts#
- L829 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/domain-motion-pipelines/src/martial-arts-pipeline.ts#
- L462 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/fitness-animation/src/pose-estimation/tracking.ts#
- L820 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/fitness-animation/src/skeletal/skeleton-factory.ts#
- L548 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnskeleton*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/human-mesh-recovery/src/smpl-recovery.ts#
- L885 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
features[i] = (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L899 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
params.shape.betas = params.shape.betas.map(() => (Math.random() - 0.5) * 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L901 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L902 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L903 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1227 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
features[i] = (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1242 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: p.x + (Math.random() - 0.5) * 0.1 * refinementScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1243 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: p.y + (Math.random() - 0.5) * 0.1 * refinementScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1244 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: p.z + (Math.random() - 0.5) * 0.1 * refinementScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1263 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1264 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1265 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1269 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1270 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1271 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1421 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.25, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1422 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.25, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1423 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.25, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1539 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
f[j] = (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1558 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1559 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1560 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/human-mesh-recovery/src/smplx-body.ts#
- L151 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.handPCABasis[c * 45 + i] = c === i ? 1.0 : (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L314 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x += (Math.random() - 0.5) * 5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L315 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y += (Math.random() - 0.5) * 5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L734 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x = cx + (Math.random() - 0.5) * bbox.width * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L754 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x += (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L755 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y += (Math.random() - 0.5) * 2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/model-optimization/src/mixed-precision.ts#
- L839 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
activations[i] = (Math.random() - 0.5) * 2; // Range [-1, 1] - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/motion-formats/src/alembic.ts#
- L661 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:abc*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/bvh.ts#
- L677 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:bvh*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/clip-database.ts#
- L739 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:collection*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/fbx.ts#
- L1219 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:fbx*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/gltf.ts#
- L843 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:gltf*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/mocap-import.ts#
- L426 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:c3d*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L722 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:trc*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:asfamc${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-formats/src/usd.ts#
- L666 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:usd*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-integration/src/bellona/adapter.ts#
- L95 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = clampedDelay * (0.1 + Math.random() * 0.1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aja/motion-integration/src/isis/adapter.ts#
- L93 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = clampedDelay * (0.1 + Math.random() * 0.1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aja/motion-integration/src/sophia/adapter.ts#
- L96 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = clampedDelay * (0.1 + Math.random() * 0.1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aja/motion-integration/src/yemaya/adapter.ts#
- L102 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = clampedDelay * (0.1 + Math.random() * 0.1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aja/motion-pipeline-sdk/src/client.ts#
- L123 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aja/motion-processing/src/gap-filling.ts#
- L845 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: basePos.x + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L846 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: basePos.y + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L847 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: basePos.z + (Math.random() - 0.5) * noiseScale, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/motion-quality/src/qa-pipeline.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnqa-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/motion-validation/src/edge-case-testing.ts#
- L392 —
ALLOW(HIGH, ruletimer-jitter)- Code:
if (Math.random() >= options.frequency) { - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L402 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 2 * options.magnitude, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L403 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 2 * options.magnitude, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L404 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 2 * options.magnitude, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L919 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const noiseType = noiseTypes[Math.floor(Math.random() * noiseTypes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L962 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const location = locations[Math.floor(Math.random() * locations.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1120 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...items].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/motion-validation/src/ground-truth.ts#
- L1859 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...categorySamples].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1906 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...this.samples].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/motion-validation/src/types.ts#
- L1673 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/multi-view-reconstruction/src/fusion.ts#
- L777 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...observations].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/neural-retargeting/src/networks/layers.ts#
- L62 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L63 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aja/pipeline-parallelism/src/memory-pipeline.ts#
- L522 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const transferId =transfer-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/pipeline-parallelism/src/scheduler.ts#
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const itemId =item-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/pose-lifting/src/depth-estimation.ts#
- L248 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L346 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L497 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L583 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 0.2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L722 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L798 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 0.05; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/pose-lifting/src/lifting-networks.ts#
- L257 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
weights[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L623 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L644 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.spatialPositionEmbed![i] = (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L659 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.temporalPositionEmbed![i] = (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1237 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1576 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1938 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
w[i] = (Math.random() - 0.5) * 2 * scale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aja/result-aggregation/src/conflict-resolver.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L145 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L205 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L234 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/result-aggregation/src/final-assembler.ts#
- L274 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId =batch-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aja/result-aggregation/src/result-collector.ts#
- L636 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:result-${now}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aje/bitcoin/src/lightning/invoices.ts#
- L547 —
ALLOW(HIGH, rulecomment-reference)- Code:
*@noble/hashes/utils.randomBytesinstead ofMath.random(), which - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aje/wallets/src/mpc/tss.ts#
- L148 —
ALLOW(HIGH, rulecomment-reference)- Code:
* CSPRNG is available — a Math.random() fallback would collapse the - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aje/wallets/src/social-login/providers.ts#
- L373 —
ALLOW(HIGH, rulecomment-reference)- Code:
* implementation hashedemail:now:Math.random(), leaving roughly the - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L374 —
ALLOW(HIGH, rulecomment-reference)- Code:
* 32 bits ofMath.random()entropy as the only defence — brute-forced - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/advanced-music/src/memory.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmm-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/advanced-music/src/performer-control.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/age-verification/src/index.ts#
- L285 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L297 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/agent-platform/src/autonomy/cost-management.ts#
- L34 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/autonomy/graduated-control.ts#
- L31 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/compliance/benchmarking.ts#
- L28 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/compliance/incident-rollback.ts#
- L30 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/compliance/regulatory-compliance.ts#
- L30 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/data/pipeline.ts#
- L28 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/data/security.ts#
- L45 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/knowledge/knowledge-base.ts#
- L27 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/knowledge/workflow-templates.ts#
- L27 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/monitoring/dashboard.ts#
- L194 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/monitoring/training-pipeline.ts#
- L200 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random(non-deterministic, suitable for production - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L236 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L272 —
ALLOW(HIGH, rulecomment-reference)- Code:
*config.splitSeedis set) orMath.random(otherwise). Seeded - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/agent-platform/src/orchestration/framework.ts#
- L47 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/orchestration/human-approval.ts#
- L28 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/orchestration/scheduler.ts#
- L22 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/testing/alerting.ts#
- L32 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/testing/disaster-recovery.ts#
- L36 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/testing/explainability.ts#
- L33 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/agent-platform/src/testing/simulation-framework.ts#
- L32 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ai-assistant/src/afk-responder.ts#
- L361 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:response*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L422 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:response*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L508 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return templates[Math.floor(Math.random() * templates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L783 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:afk*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ai-assistant/src/ai-assistant.ts#
- L788 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:llm-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ai-assistant/src/conversation-manager.ts#
- L572 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =thread-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L932 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =summary-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ai-assistant/src/personality.ts#
- L360 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:personality*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L419 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:personality*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ai-assistant/src/question-answerer.ts#
- L722 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:answer-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L808 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const phrase = warmPhrases[Math.floor(Math.random() * warmPhrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L858 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
let response = responses[Math.floor(Math.random() * responses.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L865 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:answer-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L925 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:llm-answer-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ai-music/src/fingerprint.ts#
- L162 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
const tempName =chromaprint-${process.pid}-${Date.now()}-${Math.floor(Math.random() * 1e9)}.${ext}; - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/aphrodite/analytics/src/events/index.ts#
- L197 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/animations/src/animation-library.ts#
- L971 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
return animations[Math.floor(Math.random() * animations.length)]; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
libs/aphrodite/ar-overlays/src/index.ts#
- L337 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pitch: (Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L338 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
yaw: (Math.random() - 0.5) * 30, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L339 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
roll: (Math.random() - 0.5) * 10, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L355 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.9 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L398 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.9 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L414 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const mainExpression = expressions[Math.floor(Math.random() * expressions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L417 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
{ expression: mainExpression, confidence: 0.7 + Math.random() * 0.3 }, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L418 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
{ expression: 'neutral', confidence: 0.3 + Math.random() * 0.2 }, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1456 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.config.lifetime + (Math.random() - 0.5) * 2 * this.config.lifetimeVariance; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1459 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * this.config.emitterSize.x, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1460 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * this.config.emitterSize.y, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1461 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
vx: this.config.velocity.x + (Math.random() - 0.5) * 2 * this.config.velocityVariance.x, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1462 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
vy: this.config.velocity.y + (Math.random() - 0.5) * 2 * this.config.velocityVariance.y, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1467 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotationSpeed: this.config.rotationSpeed * (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/archive/src/accessibility/archive-a11y.ts#
- L174 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/analytics/archive-analytics.ts#
- L165 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/archive.ts#
- L236 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/clips/clip-generator.ts#
- L117 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/cultural/cultural-attribution.ts#
- L146 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/discovery/search-discovery.ts#
- L147 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/distribution/archive-distribution.ts#
- L151 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/distribution/vod-distribution.ts#
- L119 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/highlights/ai-highlights.ts#
- L145 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/i18n/archive-i18n.ts#
- L175 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/library/content-library.ts#
- L168 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/metadata/content-metadata.ts#
- L119 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/moderation/archive-moderation.ts#
- L148 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/monetization/vod-monetization.ts#
- L132 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/processing/post-production-pipeline.ts#
- L200 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/processing/post-production.ts#
- L138 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/recording/multi-angle.ts#
- L115 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/rights/archive-rights.ts#
- L161 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/search/content-search.ts#
- L111 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/storage/storage-optimization.ts#
- L143 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/tagging/content-enrichment.ts#
- L140 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/archive/src/transcoding/content-transcoder.ts#
- L219 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/audience-experience/src/audience-experience.ts#
- L216 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession-${viewerId}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L234 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =audience-exp-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/community/audience-community.ts#
- L184 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncommunity-${name.toLowerCase().replace(/\s+/g, '-')}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L203 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =community-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L365 —
ALLOW(HIGH, ruleid-token-toString)- Code:
postId:post-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L466 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ruleId:rule-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/engagement/viewer-engagement.ts#
- L170 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnint-${viewerId}-${type}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L190 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =engagement-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/feedback/audience-feedback.ts#
- L231 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =feedback-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L264 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ratingId:rating-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L295 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reviewId:review-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
surveyId:survey-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L368 —
ALLOW(HIGH, ruleid-token-toString)- Code:
responseId:resp-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/gamification/gamification-engine.ts#
- L187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbadge-${category}-${name.toLowerCase().replace(/\s+/g, '-')}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L205 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =gamification-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L294 —
ALLOW(HIGH, ruleid-token-toString)- Code:
challengeId:challenge-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/loyalty/loyalty-program.ts#
- L220 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =loyalty-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L247 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const memberId =member-${viewerId}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L294 —
ALLOW(HIGH, ruleid-token-toString)- Code:
transactionId:tx-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
redemptionId:redemption-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/notifications/notification-engine.ts#
- L180 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L198 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =notif-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/recommendations/content-recs.ts#
- L202 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =recs-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audience-experience/src/social/social-features.ts#
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L182 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnroom-${hostId}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L204 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.engineId =social-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L258 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reactionId:react-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L278 —
ALLOW(HIGH, ruleid-token-toString)- Code:
giftId:gift-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L354 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:mod-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/audio-haptics/src/index.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/auteur-camera/src/auteur-camera.ts#
- L1064 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const newShot = available[Math.floor(Math.random() * available.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/auteur-camera/src/sound-design.ts#
- L1016 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const irregularityFactor = 1 + (Math.random() - 0.5) * this.breath.irregularity * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/avatar-customization-ui/src/types.ts#
- L997 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpreset*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/avatar-renderer/src/model-loader.ts#
- L1089 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmodel*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/bidirectional-haptics/src/index.ts#
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L61 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
code += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/biometric-engine/src/bluetooth/bluetooth.ts#
- L512 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.dataConfig.rssi + (Math.random() - 0.5) * 2 * this.dataConfig.rssiVariability; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L575 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.sin(this.sampleIndex * 0.1) + (Math.random() - 0.5) * 0.5) * - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L582 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const rrJitter = (Math.random() - 0.5) * 20; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/biometric-engine/src/gsr/gsr.ts#
- L66 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L67 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aphrodite/biometric-engine/src/heart-rate/heart-rate.ts#
- L61 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L62 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aphrodite/biometric-engine/src/mediapipe/mediapipe.ts#
- L1567 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.92 + Math.random() * 0.08, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/aphrodite/biometric-engine/src/microphone/microphone.ts#
- L846 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * 0.3; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1004 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * 0.2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1024 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
sample += (Math.random() * 2 - 1) * 0.02; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aphrodite/biometric-engine/src/sensor/sensor.ts#
- L1060 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1061 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aphrodite/biometric-engine/src/websocket/websocket.ts#
- L848 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.sin(sampleIndex * 0.1) + (Math.random() - 0.5) * 0.5) * - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/body-art/src/ar/ar-body-art.ts#
- L211 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/ar/ar-body-overlay.ts#
- L168 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/attribution/cultural-advisory.ts#
- L225 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/body-art.ts#
- L277 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/capture/live-capture.ts#
- L253 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/capture/live-painting.ts#
- L190 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/collaboration/artist-collaboration.ts#
- L189 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/collaboration/artist-tools.ts#
- L217 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L226 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/coordination/multi-body-art.ts#
- L174 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/coordination/multi-performer-paint.ts#
- L182 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/editor/design-editor.ts#
- L225 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/editor/paint-editor.ts#
- L233 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/education/body-art-education.ts#
- L241 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/history/art-evolution.ts#
- L177 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/history/body-art-history.ts#
- L208 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/integration/performance-integration.ts#
- L226 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/patterns/cultural/cultural-advisory.ts#
- L168 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/patterns/cultural/cultural-patterns.ts#
- L201 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/patterns/custom-designer.ts#
- L287 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/patterns/custom/custom-design.ts#
- L233 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/rendering/paint-renderer.ts#
- L265 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/rendering/pose-deformation.ts#
- L263 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/body-art/src/testing/tracking-accuracy.ts#
- L198 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/career/src/career-engine.ts#
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}${Date.now()}${_counter}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ceremony/src/accessibility/ceremony-a11y.ts#
- L233 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/advisory/cultural-review.ts#
- L215 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/anointing/anointing-ritual.ts#
- L1649 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L1950 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitterX = (Math.random() - 0.5) * 2.0; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1951 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitterY = (Math.random() - 0.5) * 1.0; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1957 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
opacity: clampValue(opacity + (Math.random() - 0.5) * 0.1, 0, 1), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/ceremony/src/archive/ceremony-archive.ts#
- L208 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/audience/ceremony-audience.ts#
- L282 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/audience/participation-engine.ts#
- L174 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/bathing/bathing-cinematography.ts#
- L1130 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/ceremony.ts#
- L282 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/cultural/ceremony-advisory.ts#
- L401 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/design/ceremony-designer.ts#
- L169 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/effects/ceremony-effects.ts#
- L251 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/effects/environmental-effects.ts#
- L205 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/elements/element-integration.ts#
- L258 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/elements/smoke-haze.ts#
- L152 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/elements/water-ritual.ts#
- L150 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/environment/ceremony-environment.ts#
- L308 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/fire/fire-capture.ts#
- L254 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/fire/fire-safety.ts#
- L184 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/flowers/flower-ritual.ts#
- L260 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/music/ceremonial-music.ts#
- L220 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/music/chanting-harmonics.ts#
- L261 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/music/drumming-circle.ts#
- L267 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/props/prop-tracker.ts#
- L162 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/rehearsal/ceremony-rehearsal.ts#
- L212 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/ritual/progression-engine.ts#
- L164 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/sacred/ceremonial-props.ts#
- L221 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/sacred/ritual-progression.ts#
- L363 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/sacred/sacred-space.ts#
- L222 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/safety/ceremony-safety.ts#
- L298 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/safety/fire-safety.ts#
- L343 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/safety/safety-protocols.ts#
- L258 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/smoke/smoke-integration.ts#
- L208 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/studio/ceremony-studio.ts#
- L183 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/templates/tradition-templates.ts#
- L185 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/traditions/tradition-templates.ts#
- L1161 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/ceremony/src/water/water-ritual.ts#
- L280 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/chat-core/src/messages/index.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg*${++messageIdCounter}*${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/chat-entertainment/src/minigames.ts#
- L187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =puzzle-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L216 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return wordList[Math.floor(Math.random() * wordList.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L325 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =word-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L652 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const hint = unrevealed[Math.floor(Math.random() * unrevealed.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L713 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =num-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L766 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const operation = operations[Math.floor(Math.random() * operations.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L885 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =num-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/chat-entertainment/src/story.ts#
- L543 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return tied[Math.floor(Math.random() * tied.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L616 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =story-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/chat-entertainment/src/trivia.ts#
- L566 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =trivia-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/chat-moderation/src/context-aware-moderation.ts#
- L927 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:fpr*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/chat-moderation/src/moderation-dashboard.ts#
- L607 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:appeal*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1472 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:notif*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/cloud-recording/src/index.ts#
- L58 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L471 —
ALLOW(HIGH, ruleid-token-toString)- Code:
segment.checksum = Math.random().toString(36).substring(2, 34); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L996 —
ALLOW(HIGH, ruleid-token-toString)- Code:
checksum: Math.random().toString(36).substring(2, 34), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/compliance/src/compliance.ts#
- L274 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/consent/consent-manager.ts#
- L164 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/consent/ip-rights.ts#
- L183 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/content/classification-engine.ts#
- L226 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/data/data-protection.ts#
- L320 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/employment/labor-compliance.ts#
- L315 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/identity/age-verification.ts#
- L249 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/identity/viewer-access.ts#
- L272 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/legal/document-generator.ts#
- L149 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/legal/regulatory-liaison.ts#
- L199 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/legal/regulatory-monitor.ts#
- L243 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/licensing/permit-tracker.ts#
- L249 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/moderation/realtime-moderation.ts#
- L244 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/payment/payment-compliance.ts#
- L360 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/reporting/compliance-audit.ts#
- L188 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/safety/performer-safety.ts#
- L190 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/safety/trust-operations.ts#
- L202 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/tax/tax-engine.ts#
- L395 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/testing/compliance-tests.ts#
- L193 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/compliance/src/training/compliance-training.ts#
- L226 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/content-tagging/src/content-tagger.ts#
- L141 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const game = games[Math.floor(Math.random() * games.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L146 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/aphrodite/content-tagging/src/tag-suggester.ts#
- L255 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:custom-${Date.now()}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/content-takedown/src/takedown-service.ts#
- L745 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 6).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/core/src/utils/age-verification.ts#
- L246 —
ALLOW(HIGH, ruleid-token-toString)- Code:
nonce: Math.random().toString(36).substring(2, 15), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/crowd-control/src/collaborative/collaborative.ts#
- L224 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return keys.length > 0 ? keys[Math.floor(Math.random() * keys.length)] : null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/crowd-control/src/crowd-control.ts#
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/crypto-payments/src/index.ts#
- L1844 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const paymentId =pay*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/device-protocols/src/device-manager.ts#
- L769 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/drone-integration/src/reconstruction/reconstruction.ts#
- L2307 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
splats[s].position.x -= lr * gradients[s] * (Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2308 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
splats[s].position.y -= lr * gradients[s] * (Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2309 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
splats[s].position.z -= lr * gradients[s] * (Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/drone-integration/src/safety/safety-engine.ts#
- L243 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const suffix = Math.random().toString(36).slice(2, 8).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/eye-tracking/src/index.ts#
- L415 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const microX = (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L416 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const microY = (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/face-identity/src/body-extension/body-overlay.ts#
- L240 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/coordination/multi-overlay.ts#
- L234 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/expression/expression-transfer.ts#
- L360 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/face-identity.ts#
- L279 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/localization/overlay-localization.ts#
- L421 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/marketplace/overlay-marketplace.ts#
- L224 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L240 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
code += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/optimization/render-optimization.ts#
- L278 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/overlays/artistic/artistic-overlays.ts#
- L196 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/overlays/elemental/elemental-overlays.ts#
- L209 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/overlays/mythological/mythological-overlays.ts#
- L192 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/persona/persona-manager.ts#
- L202 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/pipeline/asset-pipeline.ts#
- L264 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/preprocessing/face-calibration.ts#
- L207 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/protection/identity-defense.ts#
- L241 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/rendering/overlay-renderer.ts#
- L227 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/testing/overlay-ab-testing.ts#
- L284 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/face-identity/src/vr/vr-overlay-integration.ts#
- L345 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/game-audio/src/sfx/sfx-system.ts#
- L197 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Uses Math.random() for portability; the anti-repetition logic handles - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/game-horror/src/ghost/ghost.ts#
- L458 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const targetX = bounds.minX + Math.random() * (bounds.maxX - bounds.minX); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L459 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const targetY = bounds.minY + Math.random() * (bounds.maxY - bounds.minY); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L460 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const targetZ = bounds.minZ + Math.random() * (bounds.maxZ - bounds.minZ); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/aphrodite/game-horror/src/scare/scare.ts#
- L765 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() > definition.probability) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/aphrodite/game-input/src/recording/input-recorder.ts#
- L280 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrec*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/game-input/src/viewer-input/viewer-input-router.ts#
- L446 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvir*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/game-openworld/src/viewer/viewer.ts#
- L343 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Deterministic based on counter — no Math.random - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/game-rpg/src/dungeon/dungeon.ts#
- L73 —
ALLOW(HIGH, rulecomment-reference)- Code:
* If seed is 0, uses Math.random() instead (non-deterministic). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L78 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return Math.floor(Math.random() * (max - min + 1)) + min; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/aphrodite/game-rpg/src/monster/monster.ts#
- L633 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
template = minibossTemplates[Math.floor(Math.random() * minibossTemplates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L640 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
template = eliteTemplates[Math.floor(Math.random() * eliteTemplates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/gamification/src/leaderboards/index.ts#
- L669 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: params.id ??prize*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/growth/src/growth-engine.ts#
- L444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/haptics/src/index.ts#
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L240 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
value += (Math.random() - 0.5) * this.config.noiseIntensity * 20; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/highlight-clipping/src/index.ts#
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L788 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
type: signalTypes[Math.floor(Math.random() * signalTypes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/immersive-theater/src/discovery.ts#
- L289 —
ALLOW(HIGH, rulecomment-reference)- Code:
// This avoids Math.random() for testability - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/interactables/src/index.ts#
- L220 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/lilith-game-bridge/src/lilith-game-bridge.ts#
- L1166 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const type = types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1198 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const name = nameList[Math.floor(Math.random() * nameList.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/literary-engine/src/branching.ts#
- L135 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/literary-engine/src/calligraphy.ts#
- L221 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L222 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L415 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotation: (Math.random() - 0.5) * 0.2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L436 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * displayConfig.spread * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L468 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotation: (Math.random() - 0.5) * Math.PI, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/literary-engine/src/collaborative.ts#
- L375 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotation = (Math.random() - 0.5) * 30; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L411 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotation = (Math.random() - 0.5) * 60; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/literary-engine/src/narrative.ts#
- L120 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/literary-engine/src/synesthetic-text.ts#
- L1805 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selected = scored[Math.floor(Math.random() * topN)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/literary-engine/src/text-env.ts#
- L511 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * roomSize, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L513 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * roomSize, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L516 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L518 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 10, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/market-intelligence/src/competitive-engine.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/market-intelligence/src/jurisdiction-engine.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/market-intelligence/src/risk-entry-engine.ts#
- L80 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/market-intelligence/src/scoring-engine.ts#
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/meditation/src/body-positive/body-positive.ts#
- L276 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
celebrationText = propMessages[Math.floor(Math.random() * propMessages.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts#
- L217 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: 0.5 + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L218 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: 0.5 + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/motion-haptics/src/index.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/movement-engine/src/particle-sculpt.ts#
- L209 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size: size * 0.08 * (0.8 + Math.random() * 0.4), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L211 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
opacity: 0.85 + Math.random() * 0.15, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L246 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size: radius * 0.06 * (0.8 + Math.random() * 0.4), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L306 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * radius * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L310 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: center.y + (Math.random() - 0.5) * radius * 0.15, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L318 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size: radius * 0.07 * (0.8 + Math.random() * 0.4), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L320 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
opacity: 0.85 + Math.random() * 0.15, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L346 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * length * 0.05; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L358 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size: length * 0.02 * (0.8 + Math.random() * 0.4), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L379 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const u = Math.random(); - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L380 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const v = Math.random(); - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L383 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const r = radius * Math.pow(Math.random(), 1 / 3); - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L395 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.05, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L396 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
y: Math.random() * 0.02, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L397 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.05, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L399 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
size: radius * 0.06 * (0.6 + Math.random() * 0.8), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L400 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
color: lerpColor(color, rgba(1, 1, 1, 0.5), Math.random() * 0.2), - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L401 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
opacity: 0.6 + Math.random() * 0.3, - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L641 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: p.position.x + (Math.random() - 0.5) * dissolveProgress * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L643 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: p.position.z + (Math.random() - 0.5) * dissolveProgress * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/multi-performer/src/biometrics/group-effects.ts#
- L615 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 200, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L617 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 200, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/multi-source/src/test-setup.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id = id ??track-${Date.now()}-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id =stream-${Date.now()}-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/neuro-design/src/dopamine-schedule.ts#
- L174 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = (Math.random() * 2 - 1) * variance; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L182 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const ratio = meanIntervalMs * (0.5 + Math.random()); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/aphrodite/nft-integration/src/index.ts#
- L73 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/partnerships/src/partnership-engine.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/payments/src/processors/index.ts#
- L73 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}_${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L454 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnepoch*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/payments/src/tax/index.ts#
- L315 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tax*${Date.now()}*${Math.random().toString(36).slice(2, 11)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tax*${Date.now()}*${Math.random().toString(36).slice(2, 11)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/performer-sovereignty/src/data-ownership.ts#
- L313 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/audio-desc/index.ts#
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ad-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/captions/index.ts#
- L76 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cap-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/compliance/index.ts#
- L93 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:req-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L112 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rem-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reportId:rpt-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/hearing/index.ts#
- L104 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/motor/index.ts#
- L136 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:switch-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/personalization/index.ts#
- L104 —
ALLOW(HIGH, ruleid-token-toString)- Code:
profileId:prof-${now}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/testing/index.ts#
- L354 —
ALLOW(HIGH, ruleid-token-toString)- Code:
auditId:audit-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-accessibility/src/wcag/index.ts#
- L319 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:issue-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-analytics/src/dashboard/global-dashboard.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
widgetId:widget-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-analytics/src/realtime/realtime-analytics.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/platform-analytics/src/reporting/analytics-reporting.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreport-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/ppv/src/index.ts#
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnppvaccess${Date.now()}_${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/privacy-coins/src/index.ts#
- L1360 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const paymentId =priv*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/procedural-art/src/tuning.ts#
- L582 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const offset = (Math.random() - 0.5) * 2 * maxOffset; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L735 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const targetOffset = (Math.random() - 0.5) * range * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L737 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const duration = (5000 + Math.random() * 10000) / state.driftSpeedScale; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L818 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const targetOffset = (Math.random() - 0.5) * range * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L820 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const duration = (5000 + Math.random() * 10000) / state.driftSpeedScale; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/aphrodite/production/src/analytics/show-analytics.ts#
- L223 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/assets/production-assets.ts#
- L203 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/automation/show-automation.ts#
- L198 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/budget/budget-tracker.ts#
- L192 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/callsheet/call-sheet.ts#
- L188 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/collaboration/team-workspace.ts#
- L213 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/comms/live-comms.ts#
- L155 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/communication/live-comms.ts#
- L115 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L122 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/cue/cue-editor.ts#
- L285 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/cue/cue-execution.ts#
- L158 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/cues/cue-editor.ts#
- L109 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/cues/cue-executor.ts#
- L114 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/cues/cue-preview.ts#
- L122 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L129 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/emergency/emergency-control.ts#
- L211 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/emergency/emergency-controls.ts#
- L130 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/multistage/multi-stage-manager.ts#
- L173 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/operators/multi-operator.ts#
- L151 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L158 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/performance/team-performance.ts#
- L212 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/postshow/postshow-manager.ts#
- L229 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/preshow/preshow-manager.ts#
- L188 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/preview/cue-preview.ts#
- L175 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/production.ts#
- L278 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/promotion/show-promotion.ts#
- L152 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L159 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/quality/production-quality.ts#
- L149 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/quality/quality-checklist.ts#
- L191 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/rehearsal/rehearsal-manager.ts#
- L197 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/reporting/post-show-report.ts#
- L137 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L144 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L151 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/reporting/show-reporting.ts#
- L187 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/runbook/show-runbook.ts#
- L212 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/runbooks/show-runbook.ts#
- L131 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L138 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/rundown/rundown-engine.ts#
- L186 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/scenes/scene-manager.ts#
- L175 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/scheduling/call-sheets.ts#
- L130 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L137 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/scheduling/show-calendar.ts#
- L178 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/templates/show-templates.ts#
- L169 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/production/src/ticketing/ticket-integration.ts#
- L193 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/property/src/design/aesthetic-standards.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/design/space-planning.ts#
- L29 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/design/tech-infrastructure.ts#
- L29 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/legal/neighbor-relations.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/legal/portfolio-optimization.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/legal/regulatory-compliance.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/legal/risk-assessment.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/legal/sustainability.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/operations/insurance.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/operations/maintenance.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/operations/multi-venue-dashboard.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/property-engine.ts#
- L52 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/renovation/project-management.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/property/src/renovation/tech-installation.ts#
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/recommendations/src/test-helpers.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const viewerId = overrides.viewerId ??viewer-${Math.random().toString(36).substring(7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
overrides.broadcasterId ??broadcaster-${Math.random().toString(36).substring(7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L189 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const streamId = overrides.streamId ??stream-${Math.random().toString(36).substring(7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L241 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: overrides.id ??interaction-${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/research-agents/src/agent-engine.ts#
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/revenue-sharing/src/index.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/risk-crisis/src/risk-engine.ts#
- L356 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/sacred-architecture/src/composition.ts#
- L276 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncomp-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/sacred-architecture/src/destruction-rebirth.ts#
- L375 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const elevation = (Math.random() - 0.5) * Math.PI; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L394 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
angularVelocity: (Math.random() - 0.5) * 720, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/sacred-dance/src/engagement/viewer-engagement.ts#
- L769 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return filtered[Math.floor(Math.random() * filtered.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/sacred-dance/src/sacred-dance.ts#
- L631 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/scene-fantasy/src/fairy-forest/fairy-forest.ts#
- L1130 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1132 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/scene-goddess/src/ocean/ocean.ts#
- L398 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: performerPos.x + (Math.random() - 0.5) * 100, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L400 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: performerPos.z + (Math.random() - 0.5) * 100, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L406 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * Math.PI * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/scene-nature/src/performer-physics/physics-engine.ts#
- L616 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: particle.position.x + (Math.random() - 0.5) * spreadRate * dt * 0.5, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/sensation-bus/src/profiles.ts#
- L124 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/sensation-bus/src/sensation-bus.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsb*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/spatial-audio/src/hrtf.ts#
- L411 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 0.01; // Add slight diffusion - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1503 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:hrtf-profile-${now}-${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1737 —
ALLOW(HIGH, ruleid-token-toString)- Code:
profile.id =hrtf-profile-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/spatial-audio/src/index.ts#
- L1100 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/spatial-audio/src/voice-zones.ts#
- L700 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:conv-${Date.now()}-${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/storage/src/utils.ts#
- L141 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/stream-upscaling/src/index.ts#
- L2329 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnupscale-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/symbol-engine/src/tarot.ts#
- L779 —
ALLOW(HIGH, rulecomment-reference)- Code:
* or uses Math.random() as a fallback. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/aphrodite/talent/src/analytics/career-analytics.ts#
- L216 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/analytics/talent-analytics.ts#
- L114 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/availability/availability-tracker.ts#
- L103 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/calendar/availability-calendar.ts#
- L175 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/casting/casting-engine.ts#
- L138 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/communication/performer-comms.ts#
- L156 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/community/performer-community.ts#
- L163 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/consent/talent-consent.ts#
- L192 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/contracts/contract-manager.ts#
- L108 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/cultural/exchange-program.ts#
- L204 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/development/career-development.ts#
- L194 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/development/talent-development.ts#
- L115 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/emergency/crisis-support.ts#
- L246 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/logistics/travel-management.ts#
- L255 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/onboarding/performer-onboarding.ts#
- L190 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/payment/performer-payment.ts#
- L221 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/portfolio/performer-portfolio.ts#
- L106 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/reputation/performer-reputation.ts#
- L185 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/reputation/trust-system.ts#
- L231 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/retention/performer-retention.ts#
- L188 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/scheduling/conflict-resolution.ts#
- L156 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/strategy/content-strategy.ts#
- L210 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/talent.ts#
- L210 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/training/talent-training.ts#
- L195 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/wellness/burnout-prevention.ts#
- L251 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/talent/src/wellness/performer-wellness.ts#
- L172 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 16; i++) r += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/ai-camera/ai-camera-direction.ts#
- L195 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/ai/camera-ai-director.ts#
- L239 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L246 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L253 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L467 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variation = (Math.random() - 0.5) * avgDuration * 0.3; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/technical-direction/src/audio/audio-routing.ts#
- L181 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/calibration.ts#
- L127 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/camera-calibration.ts#
- L169 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/camera-plan.ts#
- L160 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/immersive-capture.ts#
- L148 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L155 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/motion-control.ts#
- L125 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L132 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/switching-plan.ts#
- L123 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/camera/thermal-capture.ts#
- L124 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/contingency/contingency-system.ts#
- L163 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/contingency/failover.ts#
- L115 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L122 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/documentation/tech-docs.ts#
- L210 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/drone/flight-designer.ts#
- L119 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/drone/flight-path.ts#
- L179 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/equipment-monitoring/equipment-monitor.ts#
- L165 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/immersive/immersive-capture.ts#
- L160 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/lighting/dmx-control.ts#
- L194 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/logistics/tech-inventory.ts#
- L136 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L143 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/logistics/tech-logistics.ts#
- L165 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/monitoring/stream-quality.ts#
- L165 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/motion-control/camera-motion.ts#
- L172 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/quality/stream-monitor.ts#
- L122 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/recording/multi-camera-recording.ts#
- L170 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/rehearsal-automation/tech-rehearsal.ts#
- L181 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/rehearsal/tech-rehearsal.ts#
- L146 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L153 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L160 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/remote/remote-control.ts#
- L178 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/technical-direction.ts#
- L235 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/thermal/thermal-capture.ts#
- L158 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/training-sim/td-training.ts#
- L203 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/underwater/underwater-capture.ts#
- L147 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/video-switching/video-switcher.ts#
- L182 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/technical-direction/src/video/switching-effects.ts#
- L132 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L139 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < 12; i++) id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/testing/src/fixtures/index.ts#
- L29 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
result += chars.charAt(Math.floor(Math.random() * chars.length)); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L52 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return Math.floor(Math.random() * (max - min + 1)) + min; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L59 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return array[Math.floor(Math.random() * array.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L66 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime())); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
libs/aphrodite/thumbnail-generation/src/frame-analyzer.ts#
- L105 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 0.5 + (Math.random() * 0.3 - 0.15); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L113 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 0.6 + (Math.random() * 0.3 - 0.15); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L121 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 0.5 + (Math.random() * 0.4 - 0.2); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L130 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 0.1 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L139 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return 0.1 + Math.random() * 0.15; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L565 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const numFaces = Math.floor(Math.random() * 3) + 1; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L568 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const faceWidth = frame.width * (0.1 + Math.random() * 0.15); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L570 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const faceX = (frame.width - faceWidth) * (0.2 + Math.random() * 0.6); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L571 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const faceY = frame.height * (0.1 + Math.random() * 0.3); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L583 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L623 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const emotion = emotions[Math.floor(Math.random() * emotions.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L627 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
min: 20 + Math.floor(Math.random() * 10), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L628 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
max: 35 + Math.floor(Math.random() * 10), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L631 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
emotionConfidence: 0.7 + Math.random() * 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L633 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pitch: (Math.random() - 0.5) * 30, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L634 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
yaw: (Math.random() - 0.5) * 40, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L635 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
roll: (Math.random() - 0.5) * 20, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L637 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
eyesOpen: 0.7 + Math.random() * 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L638 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
mouthOpen: Math.random() * 0.4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L639 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
smile: emotion === 'happy' ? 0.7 + Math.random() * 0.3 : Math.random() * 0.3, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L640 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
glasses: Math.random() > 0.7, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L641 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
sunglasses: Math.random() > 0.95, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L643 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
forehead: Math.random() * 0.2, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L644 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
eyes: Math.random() * 0.1, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L645 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
mouth: Math.random() * 0.15, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L986 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const primaryScene = scenes[Math.floor(Math.random() * scenes.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L996 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
sceneScores[primaryScene] = 0.8 + Math.random() * 0.2; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L999 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const numSecondary = Math.floor(Math.random() * 3); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1002 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const scene = scenes[Math.floor(Math.random() * scenes.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1005 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
sceneScores[scene] = 0.3 + Math.random() * 0.4; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1013 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
environment: environments[Math.floor(Math.random() * environments.length)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1018 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
Math.floor(Math.random() * 4) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1020 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1056 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const numObjects = 2 + Math.floor(Math.random() * 4); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1060 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const type = objectTypes[Math.floor(Math.random() * objectTypes.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1061 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const width = frame.width * (0.1 + Math.random() * 0.3); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1062 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const height = frame.height * (0.1 + Math.random() * 0.3); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1063 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const x = Math.random() * (frame.width - width); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1064 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const y = Math.random() * (frame.height - height); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1068 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.6 + Math.random() * 0.4, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1070 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
isKeyObject: type === 'person' || Math.random() > 0.7, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1071 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
importance: type === 'person' ? 0.9 : 0.3 + Math.random() * 0.4, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1096 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const numText = Math.floor(Math.random() * 3); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1108 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const textType = textTypes[Math.floor(Math.random() * textTypes.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1109 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const width = frame.width * (0.1 + Math.random() * 0.2); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1110 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const height = 20 + Math.random() * 30; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1111 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const x = Math.random() * (frame.width - width); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1112 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const y = Math.random() * (frame.height - height); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1116 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
Math.floor(Math.random() * 4) - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1118 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1146 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const hasAction = Math.random() > 0.7; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1160 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
actionType: actionTypes[Math.floor(Math.random() * actionTypes.length)], - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1161 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.6 + Math.random() * 0.4, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1162 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
intensity: 0.4 + Math.random() * 0.6, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1169 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
isHighlight: Math.random() > 0.5, - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/aphrodite/tip-acknowledgment/src/thank-you-messages.ts#
- L580 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
compliment: COMPLIMENTS[Math.floor(Math.random() * COMPLIMENTS.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L581 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
emoji: emojis[Math.floor(Math.random() * emojis.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/aphrodite/tip-effects/src/index.ts#
- L52 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L161 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return items[Math.floor(Math.random() * items.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L347 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotationSpeed: particle.rotation ? particle.rotationSpeed * (Math.random() - 0.5) * 2 : 0, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L392 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
p.velocity.x += (Math.random() - 0.5) * physics.turbulence * deltaTime; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L393 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
p.velocity.y += (Math.random() - 0.5) * physics.turbulence * deltaTime; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L394 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
p.velocity.z += (Math.random() - 0.5) * physics.turbulence * deltaTime; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L723 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const phi = Math.random() * Math.PI * 2; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/aphrodite/tip-goals/src/index.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngoal*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L632 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:contrib*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1015 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const contentId =content*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/venue-management/src/accessibility/venue-accessibility.ts#
- L346 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/analytics/venue-benchmarks.ts#
- L181 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/audience/venue-audience.ts#
- L208 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/communication/partner-comms.ts#
- L253 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/coordination/multi-venue-events.ts#
- L191 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/dashboard/global-dashboard.ts#
- L161 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/equipment/equipment-manager.ts#
- L193 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/finance/revenue-sharing.ts#
- L286 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/infrastructure/network-manager.ts#
- L195 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/infrastructure/power-management.ts#
- L279 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/legal/insurance-manager.ts#
- L312 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/marketing/venue-promotion.ts#
- L185 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/onboarding/application.ts#
- L251 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/onboarding/inspection.ts#
- L556 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/onboarding/integration-test.ts#
- L255 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/profile/venue-profile.ts#
- L235 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/quality/tier-system.ts#
- L270 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/quality/upgrade-tracker.ts#
- L338 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/safety-tracking/safety-tracking.ts#
- L609 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/scheduling/venue-scheduler.ts#
- L201 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/security/access-control.ts#
- L251 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/staff/staff-manager.ts#
- L207 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/aphrodite/venue-management/src/venue-management.ts#
- L588 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/vfx-particles/src/physics.ts#
- L1563 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * flockConfig.boundaryRadius * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1567 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * flockConfig.maxSpeed, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1568 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * flockConfig.maxSpeed * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1569 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * flockConfig.maxSpeed - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/viewer-avatars/src/index.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/viewer-interactions/src/index.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/vip-areas/src/index.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/virtual-gifts/src/index.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L746 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: -(this.config.fallSpeed + (Math.random() - 0.5) * 2 * this.config.fallSpeedVariance), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1048 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 6, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1060 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pos = { x: (Math.random() - 0.5) * 4, y: 5, z: 2 }; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/virtual-rooms/src/environmental-effects.ts#
- L1324 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomRange = (range: ValueRange) => range.min + Math.random() * (range.max - range.min); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1333 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: direction.x * speed + (Math.random() - 0.5) * config.velocityRandomness * speed, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1334 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: direction.y * speed + (Math.random() - 0.5) * config.velocityRandomness * speed, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1335 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: direction.z * speed + (Math.random() - 0.5) * config.velocityRandomness * speed, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1341 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const stop = config.startColor[Math.floor(Math.random() * config.startColor.length)]; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1348 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${config.id}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1367 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const r = emitter.emitFromShell ? shapeRadius : Math.random() * shapeRadius; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1375 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: position.x + (Math.random() - 0.5) * emitter.scale.x, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1376 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: position.y + (Math.random() - 0.5) * emitter.scale.y, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1377 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: position.z + (Math.random() - 0.5) * emitter.scale.z, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1381 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1382 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const phi = Math.acos(2 * Math.random() - 1); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1391 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1392 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const phi = Math.acos(Math.random()); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1402 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1403 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const h = Math.random(); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1414 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: position.x + (Math.random() - 0.5) * emitter.scale.x, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1416 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: position.z + (Math.random() - 0.5) * emitter.scale.z, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1420 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1450 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1451 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const phi = Math.acos(2 * Math.random() - 1); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1465 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
direction.x += (Math.random() - 0.5) * 2 * randomize; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1466 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
direction.y += (Math.random() - 0.5) * 2 * randomize; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1467 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
direction.z += (Math.random() - 0.5) * 2 * randomize; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1625 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() < strikeChance) { - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1628 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
Math.random() * (lightning.intensity.max - lightning.intensity.min); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L1630 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 100, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1632 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: (Math.random() - 0.5) * 100, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/virtual-rooms/src/room-customization.ts#
- L546 —
ALLOW(HIGH, ruleid-token-toString)- Code:
instanceId:prop-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L844 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:room-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/virtual-rooms/src/room-editor-hooks.ts#
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/virtual-rooms/src/room-templates.ts#
- L1129 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:room-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1132 —
ALLOW(HIGH, ruleid-token-toString)- Code:
instanceId:${prop.id}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/aphrodite/vod-chaptering/src/index.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L355 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/aphrodite/volumetric-capture/src/multi-cam/multi-cam.ts#
- L131 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jx = (Math.random() - 0.5) * 2 * jitterPx; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L132 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jy = (Math.random() - 0.5) * 2 * jitterPx; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/aphrodite/wearables/src/index.ts#
- L1377 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variation = (Math.random() - 0.5) * 2 * this.variability; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1385 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const rrVariation = (Math.random() - 0.5) * 50; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/arete/habits/src/reminders.ts#
- L267 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const msg = COMEBACK_MESSAGES[Math.floor(Math.random() * COMEBACK_MESSAGES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L287 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const msg = ENCOURAGEMENT_MESSAGES[Math.floor(Math.random() * ENCOURAGEMENT_MESSAGES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/asase/processing/src/raw-material-receiving.ts#
- L868 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
returnLOT-${Date.now()}-${String(Math.floor(Math.random() * 1000)).padStart(3, '0')}; - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/asase/sota/src/ml-predictions.ts#
- L262 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/adapters/src/bridge/message-codec.ts#
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/adapters/src/bridge/reconnection.ts#
- L241 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay += Math.random() * jitterAmount * 2 - jitterAmount; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/bellona/audio/src/export/index.ts#
- L520 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
return Math.random() - 0.5 + (Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/bellona/bridge-core/src/index.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MessageId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L431 —
ALLOW(HIGH, ruleid-token-toString)- Code:
conn_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/gameplay-systems/src/ai-behavior/index.ts#
- L1227 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createBehaviorNodeId(${type}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/gameplay-systems/src/combat/index.ts#
- L183 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createEntityId(entity*${Date.now()}*${Math.random().toString(36).substr(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1005 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createEffectId(effect*${Date.now()}*${Math.random().toString(36).substr(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/gameplay-systems/src/inventory/index.ts#
- L229 —
ALLOW(HIGH, ruleid-token-toString)- Code:
container_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L283 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createItemInstanceId(item*${Date.now()}*${Math.random().toString(36).substr(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/godot/src/assets/index.ts#
- L2415 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2422 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/bellona/interchange-models/src/animation/index.ts#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanim*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AnimationModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L73 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrack*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as TrackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L77 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkey*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as KeyframeId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange-models/src/index.ts#
- L174 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange-models/src/material/index.ts#
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmat*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MaterialModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnode*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as ShaderNodeId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange-models/src/scene/index.ts#
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnscene*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as SceneModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnode*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as NodeModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmesh*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MeshModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmat*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MaterialModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanim*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AnimationModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange/src/fbx/index.ts#
- L1766 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AssetId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1770 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmesh*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MeshId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1774 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmat*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MaterialId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1778 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntex*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as TextureId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange/src/index.ts#
- L317 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnjob*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as JobId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/interchange/src/usd/index.ts#
- L1522 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as AssetId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1526 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmesh*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MeshId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1530 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmat*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as MaterialId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/metahuman/src/customization/appearance-editor.ts#
- L1256 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
size: 0.5 + (Math.random() - 0.5) * intensity, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1257 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
position: 0.5 + (Math.random() - 0.5) * intensity, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1258 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rotation: 0.5 + (Math.random() - 0.5) * intensity, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/bellona/mocap/src/recording/index.ts#
- L167 —
ALLOW(HIGH, ruleid-token-toString)- Code:
config.id ?? (rec*${Date.now()}*${Math.random().toString(36).slice(2, 8)}as RecordingId); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2174 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``sess_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
as MocapSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``sess_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
libs/bellona/mocap/src/retarget/index.ts#
- L219 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``rtgt_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
as RetargetProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``rtgt_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
- L991 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rtgt*${Date.now()}*${Math.random().toString(36).slice(2, 8)}as RetargetProfileId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/mocap/src/skeleton/index.ts#
- L257 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.definition.id =skel*${Date.now()}*${Math.random().toString(36).slice(2, 8)}as SkeletonTemplateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/openusd/src/advanced/usd-sota.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/unity/src/assets/index.ts#
- L1468 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1475 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/bellona/unity/src/project/index.ts#
- L1673 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/bellona/unity/src/scene/index.ts#
- L1011 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnscene*${Date.now()}*${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1022 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/bellona/unity/src/scripts/index.ts#
- L1557 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/bellona/unreal/src/metahuman/appearance-editor.ts#
- L722 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const offset = (Math.random() - 0.5) * 2 * v; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/bellona/video/src/processing/index.ts#
- L5076 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const angle = emitter.direction + (Math.random() - 0.5) * 2 * emitter.spreadAngle; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L5077 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const speed = emitter.speed * (0.8 + Math.random() * 0.4); // 80-120% speed variation - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L5080 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: emitter.position.x + (Math.random() - 0.5) * 4, // small positional jitter - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L5081 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: emitter.position.y + (Math.random() - 0.5) * 4, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/bellona/virtual-production/src/led-wall/index.ts#
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwall*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as LEDWallId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsection*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as LEDSectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncal*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as CalibrationProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/virtual-production/src/tracking/index.ts#
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntracker*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as TrackingDeviceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L76 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncal*${Date.now()}*${Math.random().toString(36).substr(2, 9)}as CalibrationProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/xr/src/quest/index.ts#
- L790 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createXREntityId(entity*${Date.now()}*${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L851 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createXRAnchorId(anchor*${Date.now()}*${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/xr/src/spatial-ar/persistent-ar-content-anchoring.ts#
- L378 —
ALLOW(HIGH, ruleid-token-toString)- Code:
persistent_anchor_${Date.now()}_${Math.random().toString(36).slice(2, 10)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/xr/src/spatial-ar/visual-positioning-system.ts#
- L226 —
ALLOW(HIGH, ruleid-token-toString)- Code:
request.frameId ??vps-frame-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/bellona/xr/src/visionos/index.ts#
- L491 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createXREntityId(entity*${Date.now()}*${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L552 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createXRAnchorId(anchor*${Date.now()}*${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/brigid/ai-industrial/src/computer-vision.ts#
- L836 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
return features.map((v) => v + (Math.random() - 0.5) * 0.05 * v); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/brigid/ai-industrial/src/edge-ai.ts#
- L891 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(), - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L892 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/brigid/ai-industrial/src/sota.ts#
- L1239 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const chosen = maxActions[Math.floor(Math.random() * maxActions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/brigid/cybersecurity/src/threat-detection.ts#
- L497 —
ALLOW(HIGH, ruleid-token-toString)- Code:
alertId:IDS-${packet.protocol.toUpperCase()}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/brigid/factory/src/production.ts#
- L662 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const p1 = elite[Math.floor(Math.random() * elite.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L663 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const p2 = elite[Math.floor(Math.random() * elite.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L864 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L865 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/brigid/financials/src/portfolio-analysis.ts#
- L569 —
ALLOW(HIGH, rulecomment-reference)- Code:
* @param seed Optional: override Math.random with seeded function for testing - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/brigid/sota-enhancements/src/federated-learning.ts#
- L76 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
weights: globalModel.weights.map((w) => w + (Math.random() - 0.5) * 0.01), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L123 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L124 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/brigid/sota-enhancements/src/reinforcement-learning.ts#
- L93 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return (bestActions[Math.floor(Math.random() * bestActions.length)] ?? 0) as ProcessAction; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/contracts/concordia/src/adversarial-simulations/adversarial-simulations.ts#
- L282 —
ALLOW(HIGH, rulecomment-reference)- Code:
* runs without depending on Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/contracts/cybele/src/events.ts#
- L217 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =evt*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/contracts/src/tts/reference-client.ts#
- L23 —
ALLOW(HIGH, rulecomment-reference)- Code:
* player and would fail every adversarial check that looks forMath.random`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1579 —
ALLOW(HIGH, rulecomment-reference)- Code:
* identical output. NoMath.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/cybele/common/src/carbon-esg.ts#
- L444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
emissionId:EM-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/design/src/bim.ts#
- L96 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = model.id ??mdl-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L139 —
ALLOW(HIGH, ruleid-token-toString)- Code:
versionId:v${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/design/src/design-intelligence.ts#
- L1206 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const reviewId =REV-${Date.now()}-${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1232 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:CMT-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/design/src/drawings.ts#
- L1803 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =dev-${Date.now()}-${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/finance/src/reit.ts#
- L470 —
ALLOW(HIGH, ruleid-token-toString)- Code:
txId:TX-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L504 —
ALLOW(HIGH, ruleid-token-toString)- Code:
txId:TX-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L533 —
ALLOW(HIGH, ruleid-token-toString)- Code:
txId:TX-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/materials/src/paint.ts#
- L742 —
ALLOW(HIGH, ruleid-token-toString)- Code:
testId:pqc-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L883 —
ALLOW(HIGH, ruleid-token-toString)- Code:
checkId:sc-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/materials/src/steel.ts#
- L957 —
ALLOW(HIGH, ruleid-token-toString)- Code:
recordId:coat-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1200 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ndtId:ndt-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/materials/src/tiles.ts#
- L479 —
ALLOW(HIGH, ruleid-token-toString)- Code:
firingId:KF-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/prefab/src/assembly.ts#
- L434 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ci-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/prefab/src/logistics.ts#
- L186 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tp-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L296 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:esc-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/prefab/src/production.ts#
- L505 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:qc-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L514 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ncr-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L617 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:def-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L837 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:mt-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L860 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ml-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/property/src/lease.ts#
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlease*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/property/src/maintenance.ts#
- L1318 —
ALLOW(HIGH, ruleid-token-toString)- Code:
passCode: Math.random().toString(36).slice(2, 8).toUpperCase(), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/cybele/site-analysis/src/land-registry.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
'X-GLC-Request-Id':cybele-${Date.now()}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/alerts.ts#
- L325 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-rule-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L361 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L439 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-esc-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/climate-control.ts#
- L271 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:gh-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/history.ts#
- L155 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:log-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/irrigation.ts#
- L170 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:zone-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/rules.ts#
- L223 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L662 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/automation/src/scenes.ts#
- L423 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:scene-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L473 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:exec-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/content.ts#
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/exchange.ts#
- L244 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:listing-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L289 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:exchange-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L506 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:thread-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L538 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L679 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rating-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L746 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:wish-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/experts.ts#
- L269 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/groups.ts#
- L255 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/local-resources.ts#
- L1356 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/community/src/profiles.ts#
- L786 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:profile-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1257 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:activity-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/intelligence/src/anomaly-detection.ts#
- L850 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/intelligence/src/disease-detection.ts#
- L3591 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:report-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/intelligence/src/model-management.ts#
- L418 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ab-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L681 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pipeline-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1172 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L1206 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:inf-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/intelligence/src/pest-identification.ts#
- L3250 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pest-report-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/intelligence/src/plant-identification.ts#
- L2535 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:id-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2556 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:id-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/inventory/src/plant-inventory.ts#
- L90 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/inventory/src/seed-saving.ts#
- L84 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/inventory/src/seeds.ts#
- L158 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/inventory/src/suppliers.ts#
- L110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/inventory/src/supplies.ts#
- L140 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/demeter/weather/src/alerts.ts#
- L832 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:notif-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/collab/src/file-sharing/file-sharing.ts#
- L69 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
token += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/euterpe/collab/src/project-mgmt/project-mgmt.ts#
- L56 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
token += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/euterpe/core/src/dynamics/dynamics.ts#
- L1039 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Uses a seeded PRNG if randomSeed is provided; otherwise uses Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1055 —
ALLOW(HIGH, rulerng-factory)- Code:
rng = { nextSignedFloat: () => Math.random() * 2 - 1 }; - Rationale: RNG abstraction wrapper exposing Math.random as a default; callers can override with seeded RNG.
- Code:
libs/euterpe/distribution/src/distributor/index.ts#
- L597 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:ern*${Date.now()}*${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L620 —
ALLOW(HIGH, ruleid-token-toString)- Code:
packageId:pkg*${Date.now()}*${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L642 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:td*${Date.now()}*${Math.random().toString(36).substring(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/genesis/src/stems/stems.ts#
- L585 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shift = (Math.random() - 0.5) * vary * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L589 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
durationBeats: note.durationBeats * (1 + (Math.random() - 0.5) * vary * 0.3), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L594 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const pitchShift = Math.round((Math.random() - 0.5) * vary * 4); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L599 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const velChange = Math.round((Math.random() - 0.5) * vary * 40); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L608 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const interval = [0, 3, 4, 7][Math.floor(Math.random() * 4)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L646 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
Math.min(127, note.velocity + Math.round((Math.random() - 0.5) * 10)) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/euterpe/genesis/src/voice/voice.ts#
- L584 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const phrase = phrases[Math.floor(Math.random() * phrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L585 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const pitch = key[Math.floor(Math.random() * key.length)] ?? 60; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L675 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const pitch = scalePitches[Math.floor(Math.random() * scalePitches.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L677 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const dur = durations[Math.floor(Math.random() * durations.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L678 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const syl = SCAT_SYLLABLES[Math.floor(Math.random() * SCAT_SYLLABLES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/euterpe/iot/src/smart-studio/index.ts#
- L669 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variance = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/euterpe/marketing/src/advertising/index.ts#
- L434 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ad*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L589 —
ALLOW(HIGH, ruleid-token-toString)- Code:
adSetId:as*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/master/src/mix-analysis/mix-analysis.ts#
- L2151 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: id ??snapshot-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/score/src/film-scoring/film-scoring.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/score/src/wwise/wwise.ts#
- L562 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/euterpe/spatial/src/atmos/atmos.ts#
- L74 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/spatial/src/binaural/binaural.ts#
- L80 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/spatial/src/spatial-upmix/spatial-upmix.ts#
- L104 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/stage/src/dj-tools/dj-tools.ts#
- L181 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Date.now().toString(36) + Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/studio/src/daw-engine/daw-engine.ts#
- L408 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:buf-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/studio/src/instruments/instruments.ts#
- L1067 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const positionOffset = (Math.random() - 0.5) * 2 * config.positionSpread; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1070 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const pitchVar = 1 + (Math.random() - 0.5) * 2 * config.pitchSpread; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1071 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const pan = (Math.random() - 0.5) * 2 * config.panSpread; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/euterpe/studio/src/project-management/project-management.ts#
- L75 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
Array.from({ length: len }, () => chars[Math.floor(Math.random() * chars.length)]).join('') - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/euterpe/studio/src/timeline/timeline.ts#
- L147 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:clip-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/euterpe/virtuoso/src/artist-identity/artist-identity.ts#
- L74 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
s += hex[Math.floor(Math.random() * 16)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/euterpe/virtuoso/src/content-generation/content-generation.ts#
- L83 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
s += hex[Math.floor(Math.random() * 16)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/freya/beauty/src/cosmetics-development.ts#
- L560 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
AFRICAN_HERITAGE_PREFIXES[Math.floor(Math.random() * AFRICAN_HERITAGE_PREFIXES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L561 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const suffix = LUXURY_SUFFIXES[Math.floor(Math.random() * LUXURY_SUFFIXES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/freya/core/src/product-types.ts#
- L142 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
result += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/freya/ecommerce/src/catalog-inventory.ts#
- L361 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const cartId =CART-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L682 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const intentId =PI-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L910 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const reservationId =RES-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1167 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const reviewId =REV-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/ecommerce/src/social-personalization.ts#
- L1119 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =VTO-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/african-print-library.ts#
- L1112 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const attributionId =ATTR-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/collection-planner.ts#
- L249 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const collectionId =COL-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L320 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const capsuleId =CAP-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L379 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const collabId =COLLAB-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L417 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const budgetId =BUD-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L464 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const lineSheetId =LS-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L527 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const presentationId =PRES-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L561 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const reportId =RPT-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L613 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const archiveId =ARC-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/design-pipeline.ts#
- L231 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const boardId =CB-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L351 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const patternId =PAT-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L387 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const protoId =PROTO-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L408 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const requestId =SR-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L466 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const techPackId =TP-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L514 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const approvalId =APPR-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L585 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const assetId =ASSET-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/production-scheduler.ts#
- L230 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const orderId =ORD-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L317 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const poId =FPO-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L378 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const planId =CUT-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L511 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const inspectionId =QC-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/size-grading.ts#
- L335 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =FIT-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/fashion/src/trend-forecasting.ts#
- L198 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const observationId =SSO-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L463 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const reportId =TRND-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/jewelry/src/gold-management.ts#
- L487 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
movementId:MOV-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/freya/manufacturing/src/cosmetics-manufacturing.ts#
- L258 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId =BCH-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L396 —
ALLOW(HIGH, ruleid-token-toString)- Code:
readingId:CLR-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L831 —
ALLOW(HIGH, ruleid-token-toString)- Code:
batchId:DET-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/manufacturing/src/cross-manufacturing.ts#
- L465 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:KZ-${Date.now()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L845 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:WE-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/manufacturing/src/textile-manufacturing.ts#
- L407 —
ALLOW(HIGH, ruleid-token-toString)- Code:
recordId:WR-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/market-intel/src/competitive-intelligence.ts#
- L161 —
ALLOW(HIGH, ruleid-token-toString)- Code:
activityId:ACT-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/freya/sota/src/nlp.ts#
- L320 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const adj = adjectives[Math.floor(Math.random() * adjectives.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/galatea/core/src/errors/error-recovery.ts#
- L214 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = exponentialDelay * policy.jitterRatio * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/hathor/client/src/http.ts#
- L293 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/domain-models/src/common/utils.ts#
- L365 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
s += hex[Math.floor(Math.random() * 16)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/hathor/llm-npc/src/advanced/npc-sota.ts#
- L1782 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:subtask*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/behavior/behavior-controller.ts#
- L137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:goal*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L215 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L585 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:action*${type}*${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/behavior/npc-conversation.ts#
- L66 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const conversationId =npcconv${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/brain/emotional-state.ts#
- L405 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedEmotion = adjacent[Math.floor(Math.random() * adjacent.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/hathor/llm-npc/src/brain/memory-system.ts#
- L123 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:mem*${now}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/brain/personality-manager.ts#
- L121 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:personality*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/dialogue/dialogue-generator.ts#
- L456 —
ALLOW(HIGH, ruleid-token-toString)- Code:
conversationId:conv*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/platforms/inworld-client.ts#
- L212 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/llm-npc/src/provider-chain.ts#
- L559 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
delay = delay * (1 + (Math.random() - 0.5) * 2 * jitter); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/hathor/lore-compiler/src/bellona/package-builder.ts#
- L738 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbuild*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as CompilationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/lore-compiler/src/engine/quest-compiler.ts#
- L1545 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncompile*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as CompilationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/lore-compiler/src/film/screenplay-compiler.ts#
- L942 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncompile*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as CompilationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/narrative/src/branching/branching-utils.ts#
- L265 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =net*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/narrative/src/dialogue/dialogue-engine.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/narrative/src/journal/journal-system.ts#
- L36 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Date.now().toString(36) + Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/narrative/src/quest/quest-engine.ts#
- L91 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Date.now().toString(36) + Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/pre-production/src/planning/checklists.ts#
- L765 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:item-${Date.now()}-${Math.random().toString(36).slice(2, 5)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/pre-production/src/planning/project-manager.ts#
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnproj-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as ProjectId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnphase-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as PhaseId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnms-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as MilestoneId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntask-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as TaskId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/pre-production/src/scriptwriting/templates.ts#
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/pre-production/src/storyboard/storyboard-manager.ts#
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsb-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as StoryboardId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnseq-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as SequenceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnframe-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as FrameId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnelem-${Date.now()}-${Math.random().toString(36).slice(2, 9)}as ElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/culture/manager.ts#
- L100 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/culture/providers.ts#
- L11 —
ALLOW(HIGH, rulecomment-reference)- Code:
* No Math.random() calls -- randomness derives from seeded or state-based hashing. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L51 —
ALLOW(HIGH, rulecomment-reference)- Code:
* value derived from cultural state rather than Math.random(). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/hathor/simulation/src/economy/manager.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/economy/providers.ts#
- L10 —
ALLOW(HIGH, rulecomment-reference)- Code:
* NO Math.random() is used anywhere in these providers. All stochastic - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L237 —
ALLOW(HIGH, rulecomment-reference)- Code:
* No Math.random() used. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/hathor/simulation/src/npc/behavior-tree.ts#
- L1294 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${++nodeIdCounter}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/physics/engine.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/politics/manager.ts#
- L99 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/politics/providers.ts#
- L12 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - NO Math.random() in core logic -- all outcomes are deterministic functions - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/hathor/simulation/src/scenario/manager.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/state/postgres-storage.ts#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/simulation/src/state/state-store.ts#
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/sophia-integration/src/research-grounding.ts#
- L324 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:grounding-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/theory/src/cinematography/manager.ts#
- L114 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``shot_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as ShotId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``shot_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
libs/hathor/theory/src/mda/manager.ts#
- L145 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``mech_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as MechanicId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``mech_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L227 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``dyn_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as DynamicId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``dyn_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L326 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``aes_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as AestheticId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``aes_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L414 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``loop_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as FeedbackLoopId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``loop_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
libs/hathor/theory/src/narrative/manager.ts#
- L149 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``elem_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as NarrativeElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``elem_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L257 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``plot_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as PlotPointId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``plot_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L350 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``arc_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as CharacterArcId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``arc_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
libs/hathor/validation/src/causality/causality-validator.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnissue-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/validation/src/contradiction/contradiction-detector.ts#
- L41 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/validation/src/taxonomy/taxonomy-validator.ts#
- L162 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnissue-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hathor/validation/src/timeline/timeline-validator.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnissue-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/ai-ml/src/recipe-generation.ts#
- L708 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...arr].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/hestia/education/src/certifications.ts#
- L2974 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...allQuestions].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/hestia/education/src/food-science.ts#
- L3107 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...allQuestions].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/hestia/education/src/interactive.ts#
- L4986 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...filtered].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/hestia/meal-planning/src/batch-cooking.ts#
- L106 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/meal-planning/src/budget.ts#
- L99 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/meal-planning/src/calendar.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/meal-planning/src/events.ts#
- L104 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/meal-planning/src/household.ts#
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/hestia/social/src/family-cookbook.ts#
- L30 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
for (let i = 0; i < len; i++) code += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/hestia/sustainability/src/carbon-footprint.ts#
- L2469 —
ALLOW(HIGH, ruleid-token-toString)- Code:
purchaseId:offset*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/adaptive/src/utils.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/braille/src/utils.ts#
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/cognitive/src/memory-aids.ts#
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/cognitive/src/reading/content-summarization.ts#
- L923 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsummary-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/motor/src/dictation.ts#
- L155 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndictation*${Math.random().toString(36).substring(2, 15)}*${Date.now()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L159 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnhistory_${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/motor/src/switch-access.ts#
- L603 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const groupId =group-${role}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/testing/src/utils.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/accessibility/voice-ui/src/utils.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/archetypes/src/creative-agent.ts#
- L518 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = typeTemplates[Math.floor(Math.random() * typeTemplates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L580 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return intros[Math.floor(Math.random() * intros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/agents/computer-use/accessibility/src/a11y-tree-inspector.ts#
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/browser/src/types.ts#
- L31 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``browser_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as BrowserSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``browser_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??page*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as PageId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??frame*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as FrameId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L52 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??nav*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as NavigationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/desktop/src/types.ts#
- L36 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``desktop_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as DesktopSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``desktop_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??win*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as WindowId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??app*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as ApplicationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??menu*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as MenuItemId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??dlg*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as DialogId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/recording/src/screen-recorder.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/recovery/src/alternative-path-finder.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/recovery/src/error-detector.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/recovery/src/recovery-strategy-selector.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/recovery/src/rollback-manager.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/src/screen-capture.ts#
- L857 —
ALLOW(HIGH, rulecomment-reference)- Code:
* (Math.random was previously used here but produced non-deterministic - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/agents/computer-use/src/types.ts#
- L31 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``capture_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as CaptureSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``capture_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??action*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as ActionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??element*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as ElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L53 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``session_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as ComputerSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``session_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
libs/iris/agents/computer-use/templates/src/task-template-builder.ts#
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/templates/src/template-library.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/templates/src/template-parameterization.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/templates/src/template-sharing.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 12)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/computer-use/vision/src/types.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``screenshot_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as ScreenshotId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``screenshot_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??element*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as UIElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``analysis_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
) as AnalysisSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``analysis_${Date.now()}_${Math.random().toString(36).slice(2, 11)}
- L52 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??region*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as RegionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/core/src/agent-execution-replay.ts#
- L597 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: options.id ??replay*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L619 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: options.id ??replay*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/marketplace/src/agent-publisher.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/memory/src/memory-broadcast.ts#
- L19 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/memory/src/memory-conflict-resolution.ts#
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/memory/src/selective-memory-sharing.ts#
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/memory/src/shared-agent-memory.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/src/collaboration-protocol.ts#
- L704 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:event*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/src/collaboration-types.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``collab_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as CollaborationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``collab_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``handoff_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as HandoffId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``handoff_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``ctx_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as SharedContextId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``ctx_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
- L70 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``conflict_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as ConflictId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``conflict_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``consensus_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as ConsensusRoundId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``consensus_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
libs/iris/agents/multi-agent/src/conflict-resolver.ts#
- L236 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const solutionId =sol*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/src/consensus-builder.ts#
- L112 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const proposalId =prop*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/src/negotiation-protocol.ts#
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnneg*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as NegotiationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnprop*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as ProposalId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/multi-agent/src/orchestrator.ts#
- L522 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/agents/multi-agent/src/task-distributor.ts#
- L559 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return agents[Math.floor(Math.random() * agents.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/agents/multi-agent/src/types.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnorch*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as OrchestrationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnagent*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as AgentInstanceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as MessageId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L68 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntask*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as TaskId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsubtask*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as SubtaskId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnresult*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as ResultId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/personalities/src/agent-personality.ts#
- L20 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/personalities/src/personality-evolution.ts#
- L19 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/proactive/anticipation/src/opportunity-scanner.ts#
- L109 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:opp*${source.id}*${String(signal.id ?? Math.random().toString(36).slice(2, 7))}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/proactive/reminders/src/delivery-providers.ts#
- L5 —
ALLOW(HIGH, rulecomment-reference)- Code:
* stopped fabricating success viaMath.random() < 0.95. The default - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/agents/proactive/reminders/src/reminder-engine.ts#
- L507 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random() < 0.95fabrication that produced flaky and - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/agents/proactive/reminders/src/reminder-types.ts#
- L1116 —
ALLOW(HIGH, rulecomment-reference)- Code:
* viaMath.random() < 0.95, which made delivery outcomes flaky and - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/agents/specialization/src/specialization-metrics.ts#
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/calling/src/error-handler.ts#
- L251 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * jitterRange * 2 - jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/iris/agents/tools/code/src/python-runner.ts#
- L492 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exec_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/code/src/shell-runner.ts#
- L593 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exec_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/code/src/typescript-runner.ts#
- L667 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exec_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/composition/src/tool-pipeline.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${pipelineId}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/learning/src/index.ts#
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =session*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as SessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/tools/monitoring/src/types.ts#
- L335 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${toolId}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/workflows/src/error-recovery.ts#
- L656 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:err*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/agents/workflows/src/workflow-types.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??wf*${Date.now()}*${Math.random().toString(36).substring(2, 11)}) as WorkflowId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??task*${Date.now()}*${Math.random().toString(36).substring(2, 11)}) as TaskId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??step*${Date.now()}*${Math.random().toString(36).substring(2, 11)}) as StepId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??exec*${Date.now()}*${Math.random().toString(36).substring(2, 11)}) as ExecutionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L77 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``ckpt_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
) as CheckpointId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``ckpt_${Date.now()}_${Math.random().toString(36).substring(2, 11)}
libs/iris/analytics/realtime/src/alerting-triggers.ts#
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/analytics/src/privacy.ts#
- L558 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const u = Math.random() - 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/code/explanation/src/diagrams/diagram-generator.ts#
- L1883 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndiagram*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/actions/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/completions/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/inline/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/src/features/chat.ts#
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L154 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const requestId =chat-${Date.now()}-${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/src/features/inline-suggestions.ts#
- L329 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:suggestion-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:snippet-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L392 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:fn-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L416 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:multiline-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/ide/src/protocol/jsonrpc.ts#
- L93 —
ALLOW(HIGH, ruleid-token-toString)- Code:
idGenerator: () =>${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/languages/src/base-analyzer.ts#
- L240 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${this.language}-${type}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/code/semantic/src/semantic-analyzer.ts#
- L471 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:semantic-${type}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-citations/src/citation-tracker.ts#
- L618 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createSourceId(item.id ??source-${Date.now()}-${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-context/src/context-summary.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-context/src/context-tracker.ts#
- L49 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-context/src/types.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L130 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-core/src/conversation-history.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-format/src/structured-data-formatter.ts#
- L671 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:node_${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L680 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:node_${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L688 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:node_${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-format/src/types.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnfmt*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as FormatId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmedia*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as MediaId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-intent/src/types.ts#
- L98 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-orchestration/src/model-orchestrator.ts#
- L1101 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/iris/conversation-rag/src/types.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrag*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as RAGPipelineId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L56 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returninj*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as InjectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L68 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsrc*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as SourceTrackingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-response/src/types.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnresp*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as ResponseId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchunk*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as ChunkId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-state/src/types.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncheckpoint*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as CheckpointId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbranch*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as BranchId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation-style/src/types.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstyle*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as StyleProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as StyleSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/conversation/prompts/src/prompt-testing.ts#
- L223 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
u = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L224 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
v = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/iris/core/src/types.ts#
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/ethics/src/ethical-boundaries.ts#
- L582 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnethics-${Date.now()}-${Math.random().toString(36).substring(2, 9)}as EthicsContextId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L589 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnviolation-${Date.now()}-${Math.random().toString(36).substring(2, 9)}as ViolationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/rapport/src/rapport-builder.ts#
- L971 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnint*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/rapport/src/relationship-progress.ts#
- L866 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrel*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/recognition/src/utils.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnemo*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as EmotionAnalysisId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstate*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as EmotionalStateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as EmotionSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/response/src/celebrator.ts#
- L372 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return array[Math.floor(Math.random() * array.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/emotional/response/src/emotional-adapter.ts#
- L936 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnadapt*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as AdaptationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L940 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnctx*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as ResponseContextId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/response/src/gratitude-journal.ts#
- L404 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngrat*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 10)}as GratitudeEntryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/response/src/pattern-insights.ts#
- L265 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returninsight*${seed}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/response/src/supporter.ts#
- L465 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return array[Math.floor(Math.random() * array.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/emotional/social/src/cultural-awareness.ts#
- L575 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncp*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as CulturalProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/social/src/social-intelligence.ts#
- L496 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsc*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as SocialContextId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/tracking/src/mood-tracker.ts#
- L632 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnprofile*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as TrackingProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L636 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnentry*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as MoodEntryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/tracking/src/pattern-analyzer.ts#
- L612 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpattern*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as PatternId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/tracking/src/trend-analyzer.ts#
- L313 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrend*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}as TrendId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/wellbeing/src/gentle-checkin.ts#
- L481 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchk*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/emotional/wellbeing/src/wellbeing-monitor.ts#
- L602 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwb*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/ensemble/src/ensemble-orchestrator.ts#
- L121 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ensemble-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/ensemble/src/voting-strategy.ts#
- L103 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return choices[Math.floor(Math.random() * choices.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/failover/src/failover-manager.ts#
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
failover-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/failover/src/retry-policy.ts#
- L256 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * jitterRange * 2 - jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/iris/integrations/hathor/src/agents/base-agent.ts#
- L277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${this.config.agentId}-task-${Date.now()}-${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/hathor/src/agents/lore-keeper-agent.ts#
- L734 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngap-${Date.now()}-${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/hathor/src/context/lore-context-manager.ts#
- L523 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/agents/asset-creator-agent.ts#
- L1028 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1032 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/agents/base-agent.ts#
- L221 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${this.config.agentId}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/agents/npc-control-agent.ts#
- L787 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomLine = dialogue[Math.floor(Math.random() * dialogue.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L901 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnpc*${templateId}*${Date.now()}_${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/agents/scripting-assistant.ts#
- L656 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const templateId =template*${Date.now()}*${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/agents/world-builder-agent.ts#
- L570 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnobj*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L669 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: center.x + (Math.random() - 0.5) * params.size.x * 0.8, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L671 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: center.z + (Math.random() - 0.5) * params.size.z * 0.8, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/integrations/maya/src/commands/world-commands.ts#
- L720 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncmd-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/maya/src/companion/maya-companion.ts#
- L787 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/nyx/src/agents/base-agent.ts#
- L272 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${this.config.agentId}-task-${Date.now()}-${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/nyx/src/agents/observation-planner-agent.ts#
- L787 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession-${Date.now()}-${Math.random().toString(36).substring(2, 7)}as SessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/psyche/src/agents/avatar-presenter-agent.ts#
- L648 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const smallAngle = (Math.random() - 0.5) * 0.05; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L650 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.currentState.parameters.pose.head[1] += (Math.random() - 0.5) * 0.03; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L658 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variation = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/integrations/psyche/src/agents/conference-participant-agent.ts#
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Math.random().toString(36).substring(2, 15)}*${Date.now()}as SessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconf_${Math.random().toString(36).substring(2, 15)}as ConferenceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/psyche/src/agents/persona-manager-agent.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpersona*${Math.random().toString(36).substring(2, 15)}*${Date.now()}as PersonaId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L52 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmemory*${Math.random().toString(36).substring(2, 15)}*${Date.now()}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/psyche/src/avatar/avatar-service.ts#
- L96 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnavatar*${Math.random().toString(36).substring(2, 15)}*${Date.now()}as AvatarId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L622 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/integrations/psyche/src/conferencing/conferencing-service.ts#
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Math.random().toString(36).substring(2, 15)}*${Date.now()}as SessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconf_${Math.random().toString(36).substring(2, 15)}as ConferenceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/psyche/src/emotion/emotion-service.ts#
- L202 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnemotion*${Math.random().toString(36).substring(2, 15)}*${Date.now()}as EmotionStateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L646 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomEmotion = microEmotions[Math.floor(Math.random() * microEmotions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/integrations/sophia/src/agents/citation-manager-agent.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncit_${Math.random().toString(36).substring(2, 15)}as CitationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc_${Math.random().toString(36).substring(2, 15)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/sophia/src/agents/knowledge-synthesizer-agent.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnent_${Math.random().toString(36).substring(2, 15)}as EntityId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkp_${Math.random().toString(36).substring(2, 15)}as KnowledgePackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc_${Math.random().toString(36).substring(2, 15)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/sophia/src/agents/research-assistant-agent.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc_${Math.random().toString(36).substring(2, 15)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L536 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/integrations/sophia/src/citations/citation-manager-service.ts#
- L84 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncit_${Math.random().toString(36).substring(2, 15)}as CitationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/sophia/src/knowledge/knowledge-base-service.ts#
- L116 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnent_${Math.random().toString(36).substring(2, 15)}as EntityId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L121 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkp_${Math.random().toString(36).substring(2, 15)}as KnowledgePackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L152 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rel_${Math.random().toString(36).substring(2, 15)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L449 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rel_${Math.random().toString(36).substring(2, 15)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/sophia/src/research/research-assistant-service.ts#
- L195 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc_${Math.random().toString(36).substring(2, 15)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L264 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L849 —
ALLOW(HIGH, rulecomment-reference)- Code:
// the previousMath.random() * 0.3 + 0.7value reshuffled every - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L983 —
ALLOW(HIGH, rulecomment-reference)- Code:
* configured. Same input → same output, no Math.random involved. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/integrations/sophia/src/search/literature-search-service.ts#
- L172 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnqry_${Math.random().toString(36).substring(2, 15)}as QueryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc_${Math.random().toString(36).substring(2, 15)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/yemaya/src/agents/base-agent.ts#
- L324 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntask*${Date.now()}*${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L331 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/yemaya/src/agents/design-analyzer.ts#
- L147 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Real analyzer with no Math.random. Runs deterministic algorithms - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L522 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random— it deterministically reflects the input bytes. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/integrations/yemaya/src/agents/design-assistant.ts#
- L797 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.randomanywhere in the pipeline. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/integrations/yemaya/src/agents/video-editor-agent.ts#
- L820 —
ALLOW(HIGH, rulecomment-reference)- Code:
// stable across runs (the priorMath.random()value reshuffled - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L901 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const offset = (Math.random() - 0.5) * 0.5; // -0.25 to 0.25 seconds - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/integrations/yemaya/src/context/project-context-manager.ts#
- L630 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:activity*${Date.now()}*${Math.random().toString(36).substring(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/yemaya/src/suggestions/creative-suggestions.ts#
- L613 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
shotType: suggestedShots[Math.floor(Math.random() * suggestedShots.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L614 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
cameraAngle: suggestedAngles[Math.floor(Math.random() * suggestedAngles.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L615 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
cameraMovement: suggestedMovements[Math.floor(Math.random() * suggestedMovements.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1091 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${category}_${Date.now()}_${Math.random().toString(36).substring(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/integrations/yemaya/src/workflow/workflow-automation.ts#
- L677 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:exec*${Date.now()}*${Math.random().toString(36).substring(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/chunking/src/chunking-pipeline.ts#
- L452 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:chunk*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as any, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/chunking/src/types.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??chunk*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as ChunkId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L29 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??doc*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-conflict-detector.ts#
- L139 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconflict*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-curation-interface.ts#
- L225 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??cur*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L230 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-federation-manager.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-marketplace.ts#
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-monetization.ts#
- L197 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-sharing-permissions.ts#
- L204 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/core/src/knowledge-types.ts#
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??know*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??src*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L70 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??chunk*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??idx*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??qry*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L94 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??col*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/curation/src/utils.ts#
- L96 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${seed}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}as CurationItemId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/embeddings/src/types.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/enterprise/src/base-connector.ts#
- L394 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = cappedDelay * this.policy.jitterFactor * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/iris/knowledge/factcheck/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${seed}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}as ClaimId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L12 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${seed}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}as SourceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/freshness/src/types.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndoc*${Date.now()}*${++documentIdCounter}_${Math.random().toString(36).slice(2, 8)}as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnver*${Date.now()}*${++versionIdCounter}_${Math.random().toString(36).slice(2, 8)}as VersionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L60 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnfr*${Date.now()}*${++freshnessRecordIdCounter}_${Math.random().toString(36).slice(2, 8)}as FreshnessRecordId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnce*${Date.now()}*${++changeEventIdCounter}_${Math.random().toString(36).slice(2, 8)}as ChangeEventId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L70 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsub*${Date.now()}*${++subscriberIdCounter}_${Math.random().toString(36).slice(2, 8)}as SubscriberId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnidx*${Date.now()}*${++indexIdCounter}_${Math.random().toString(36).slice(2, 8)}as IndexId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/graph/src/utils.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkge*${seed}*${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkgr*${seed}*${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/personal/src/document-types.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??doc*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??watch*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const base = seed ??job*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/retrieval/src/types.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??doc*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L29 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??idx*${Date.now()}*${Math.random().toString(36).slice(2, 11)}) as IndexId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/knowledge/versioning/src/utils.ts#
- L32 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${seed}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}as KnowledgeEntityId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L36 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${seed}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}as KnowledgeVersionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/analytics/src/memory-analytics-dashboard.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return createSnapshotId(dash*${Date.now()}*${Math.random().toString(36).slice(2, 8)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/consolidation/src/memory-clusterer.ts#
- L500 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...memories].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L537 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
centroids.push(shuffled[Math.floor(Math.random() * shuffled.length)]); - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/memory/consolidation/src/types.ts#
- L1077 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1086 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/core/src/types.ts#
- L1566 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1575 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1584 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1593 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/debugging/src/timeline-tracker.ts#
- L219 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const subscriptionId =sub*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/episodic/src/types.ts#
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/personalization/inference/src/interest-detector.ts#
- L738 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createInterestId(int-${Date.now()}-${Math.random().toString(36).slice(2, 8)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/personalization/inference/src/preference-inferrer.ts#
- L797 —
ALLOW(HIGH, ruleid-token-toString)- Code:
pref-${Date.now()}-${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/privacy/src/management/memory-importer.ts#
- L874 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L880 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/semantic/src/concept-understanding.ts#
- L393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/semantic/src/types.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L87 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/semantic/src/user-knowledge-graph.ts#
- L457 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/short-term/src/types.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnslot*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as SlotId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as ReferenceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntask*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as TaskContextId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/tools/src/types.ts#
- L996 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/transitions/src/consolidation-scheduler.ts#
- L588 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/transitions/src/transition-metrics.ts#
- L403 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/transitions/src/types.ts#
- L53 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/memory/visualization/src/relationship-view.ts#
- L384 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 500, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L385 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 500, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/memory/visualization/src/topic-cluster-view.ts#
- L773 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 500, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L774 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 500, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/model-routing/src/model-router.ts#
- L145 —
ALLOW(HIGH, ruleid-token-toString)- Code:
routeId: createRouteId(route-${Date.now()}-${Math.random().toString(36).slice(2, 8)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/bci/src/bci-device.ts#
- L684 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/iris/multimodal/spatial/src/spatial-impl.ts#
- L768 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: (Math.random() - 0.5) * 0.05, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L769 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
y: (Math.random() - 0.5) * 0.05, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L951 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
x: baseX + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L953 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
z: -0.3 + (Math.random() - 0.5) * 0.1, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L957 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.9 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/multimodal/vision/documents/src/document-parser.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??doc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as DocumentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??page-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as PageId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??elem-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as ElementId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??table-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as TableId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L93 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??field-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as FormFieldId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L100 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??receipt-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as ReceiptId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L250 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const type = types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L260 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L512 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L683 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L715 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const sample = sampleItems[Math.floor(Math.random() * sampleItems.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L723 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L747 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return merchants[Math.floor(Math.random() * merchants.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L752 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return methods[Math.floor(Math.random() * methods.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L828 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
dataType: dataTypes[Math.floor(Math.random() * dataTypes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L849 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L868 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1062 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/multimodal/vision/memory/src/image-memory-store.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/vision/screenshare/src/action-suggestion.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/vision/screenshare/src/screen-share-receiver.ts#
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/vision/search/src/search-utils.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/vision/understanding/src/image-analyzer.ts#
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``img-analysis-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
) as ImageAnalysisId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``img-analysis-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
- L85 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??det-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as DetectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L93 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``scene-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
) as SceneDescriptionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``scene-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
- L100 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??ocr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as OCRResultId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L107 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??chart-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as ChartAnalysisId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L130 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random()-driven face fabrication, which produced 0–2 faces - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L206 —
ALLOW(HIGH, rulecomment-reference)- Code:
* per call withMath.random()-derived confidence/age/glasses/ - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L233 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const category = categories[Math.floor(Math.random() * categories.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L235 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const confidence = config.minConfidence + Math.random() * (1 - config.minConfidence); - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L341 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return categoryLabels[Math.floor(Math.random() * categoryLabels.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L355 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
color: colors[Math.floor(Math.random() * colors.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L356 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
size: sizes[Math.floor(Math.random() * sizes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L410 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.75 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L438 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L443 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return conditions[Math.floor(Math.random() * conditions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L448 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return conditions[Math.floor(Math.random() * conditions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L479 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
score: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L780 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
type: blockTypes[Math.floor(Math.random() * blockTypes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L781 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: config.minConfidence + Math.random() * (1 - config.minConfidence), - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L803 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: config.minConfidence + Math.random() * (1 - config.minConfidence), - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L820 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const word = sampleWords[Math.floor(Math.random() * sampleWords.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L825 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: config.minConfidence + Math.random() * (1 - config.minConfidence), - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L913 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.75 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L932 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1006 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1017 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/multimodal/vision/video/src/video-analyzer.ts#
- L399 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L594 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return resolutions[Math.floor(Math.random() * resolutions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L606 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return rates[Math.floor(Math.random() * rates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L661 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L674 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return${subjects[Math.floor(Math.random() * subjects.length)]} ${actions[Math.floor(Math.random()- actions.length)]} ${locations[Math.floor(Math.random() ...`
- Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L679 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return transitions[Math.floor(Math.random() * transitions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L703 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return moods[Math.floor(Math.random() * moods.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L711 —
ALLOW(HIGH, rulecomment-reference)- Code:
* 0 (no observable motion). The previous Math.random fabrication - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L824 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L842 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
genre: genres[Math.floor(Math.random() * genres.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L843 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
mood: moods[Math.floor(Math.random() * moods.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L858 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
label: labels[Math.floor(Math.random() * labels.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L859 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L974 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const label = actionLabels[Math.floor(Math.random() * actionLabels.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1968 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.7 + Math.random() * 0.3, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/multimodal/voice/auth/src/fallback-authentication.ts#
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/commands/src/command-confirmation.ts#
- L17 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/conversation/src/emotion/emotion-detector.ts#
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``emotion-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
) as EmotionAnalysisId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``emotion-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``state-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
) as EmotionalStateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``state-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
libs/iris/multimodal/voice/conversation/src/full-duplex-engine.ts#
- L71 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``session-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
) as ConversationSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``session-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
- L78 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??turn-${Date.now()}-${Math.random().toString(36).substring(2, 9)}) as TurnId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L85 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??utt-${Date.now()}-${Math.random().toString(36).substring(2, 9)}) as UtteranceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L93 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``part-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
) as ParticipantId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``part-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
libs/iris/multimodal/voice/conversation/src/prosody/prosody-analyzer.ts#
- L62 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``prosody-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
) as ProsodyAnalysisId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``prosody-${Date.now()}-${Math.random().toString(36).substring(2, 9)}
libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts#
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``webrtc-conn-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
) as WebRTCConnectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``webrtc-conn-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
``webrtc-stream-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
) as WebRTCStreamId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
``webrtc-stream-${Date.now()}-${Math.random().toString(36).slice(2, 9)}
- L79 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??ice-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as ICECandidateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??proc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}) as AudioProcessorId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1167 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
payload[i] = Math.floor((Math.random() - 0.5) * 10 + 128); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1675 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random(), which is not a CSPRNG and which RFC 5245 - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1881 —
ALLOW(HIGH, rulecomment-reference)- Code:
*crypto.randomBytesis the CSPRNG;Math.randomis *not* and is - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1912 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - ReplacingMath.random()withcrypto-derived bytes also - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1923 —
ALLOW(HIGH, rulecomment-reference)- Code:
// entropy — never aMath.random()artifact. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/multimodal/voice/journaling/src/voice-journal-recorder.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/language/language-detector.ts#
- L1194 —
ALLOW(HIGH, rulecomment-reference)- Code:
* given audio input — noMath.randomanywhere on the path. The - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1416 —
ALLOW(HIGH, rulecomment-reference)- Code:
* never returnsMath.randomor hash-derived pseudo-scores. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/iris/multimodal/voice/recognition/src/language/language-types.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlang*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as LanguageDetectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/speaker/speaker-diarization.ts#
- L119 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L465 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.8 + Math.random() * 0.2, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/multimodal/voice/recognition/src/speaker/speaker-types.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``profile_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
) as VoiceProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``profile_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnenroll*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as EnrollmentSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnverify*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as VerificationSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-call-recording.ts#
- L319 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-call-translation.ts#
- L309 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L386 —
ALLOW(HIGH, ruleid-token-toString)- Code:
call_translation_${Date.now()}_${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-journaling-features.ts#
- L310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-memo-reminders.ts#
- L183 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-note-organization.ts#
- L265 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/voice-transcription-editing.ts#
- L219 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L340 —
ALLOW(HIGH, ruleid-token-toString)- Code:
transcript_edit_${Date.now()}_${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/recognition/src/whisper/whisper-types.ts#
- L32 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??model*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as WhisperModelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as WhisperRequestId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L951 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:transcript*${Date.now()}*${Math.random().toString(36).slice(2, 8)}as any, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/synthesis/src/cartesia/cartesia-provider.ts#
- L828 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/synthesis/src/elevenlabs/elevenlabs-provider.ts#
- L440 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``cloned_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
as ElevenLabsVoiceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``cloned_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
libs/iris/multimodal/voice/synthesis/src/personas/persona-provider.ts#
- L72 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/multimodal/voice/synthesis/src/synthesis-types.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsynth*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as SynthesisSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Math.random().toString(36).slice(2, 11)}as VoiceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchunk*${Date.now()}*${Math.random().toString(36).slice(2, 11)}as AudioChunkId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/billing/src/billing-calculator.ts#
- L115 —
ALLOW(HIGH, ruleid-token-toString)- Code:
statementId:stmt*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/billing/src/invoice-generator.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const invoiceId =inv*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/billing/src/payment-integration.ts#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
paymentId:pay*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L70 —
ALLOW(HIGH, ruleid-token-toString)- Code:
paymentId:pay*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/billing/src/usage-tracker.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:usage*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/streaming/src/protocol/index.ts#
- L127 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sub*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L348 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconn*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/streaming/src/types.ts#
- L302 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/streaming/src/websocket/index.ts#
- L513 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id =client*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L784 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sub*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/webhooks/src/event-dispatcher.ts#
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L164 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deliveryId:del*${Date.now()}*${Math.random().toString(36).slice(2, 10)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/platform/webhooks/src/webhook-manager.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =wh*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/integration/src/hathor-integration.ts#
- L487 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnhathor-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/integration/src/maya-integration.ts#
- L379 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmaya-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/integration/src/nyx-integration.ts#
- L551 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnyx-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/integration/src/oshun-integration.ts#
- L755 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/integration/src/yemaya-integration.ts#
- L475 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnyemaya-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/sync/src/notification-unification.ts#
- L747 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/sync/src/state-sync.ts#
- L876 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/presence/sync/src/task-handoff.ts#
- L688 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/audit/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/dashboard/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/local/src/acceleration/gpu-accelerator.ts#
- L1132 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngpu-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/local/src/hybrid/hybrid-cloud-edge.ts#
- L879 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/local/src/offline/offline-sync.ts#
- L1053 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsync-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/safety/behavior/src/action-confirmation.ts#
- L229 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const phrase = phrases[Math.floor(Math.random() * phrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/privacy/safety/transparency/src/uncertainty-disclosure.ts#
- L268 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return phrases[Math.floor(Math.random() * phrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/iris/privacy/security/injection/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/security/logging/src/utils.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/security/pentest/src/utils.ts#
- L13 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/security/threats/src/utils.ts#
- L8 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/sovereignty/src/compliance/ccpa-compliance.ts#
- L1133 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/sovereignty/src/compliance/gdpr-compliance.ts#
- L1371 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/sovereignty/src/index.ts#
- L1080 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const deletionId =del*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1183 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const workflowId =dwf*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1584 —
ALLOW(HIGH, ruleid-token-toString)- Code:
selectionId:rsel*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2147 —
ALLOW(HIGH, ruleid-token-toString)- Code:
roundId:flr*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2219 —
ALLOW(HIGH, ruleid-token-toString)- Code:
updateId:flu*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2503 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pae*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2934 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reportId:par*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4357 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:audit*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/privacy/sovereignty/src/residency/data-residency.ts#
- L844 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/sdk/typescript/src/http/client.ts#
- L579 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 0.3 + 0.85; // 0.85-1.15 - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/iris/testing/src/fixtures/conversation.ts#
- L493 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const messageCount = Math.floor(Math.random() * 10) + 2; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
libs/iris/testing/src/mocks/model-provider.ts#
- L638 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/testing/src/mocks/voice-provider.ts#
- L683 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.15, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/testing/src/regression/baseline.ts#
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/testing/src/regression/tests.ts#
- L232 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const score = 0.8 + Math.random() * 0.2; // 0.8-1.0 range - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L270 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const score = 0.85 + Math.random() * 0.15; // 0.85-1.0 range - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L308 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const score = 0.95 + Math.random() * 0.05; // 0.95-1.0 range (should be high) - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/iris/testing/synthetic/src/alert-integration.ts#
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deps.alertIdFactory ?? (() =>alert-${Date.now()}-${Math.random().toString(16).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/testing/synthetic/src/health-check-probes.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deps.runIdFactory ?? (() =>probe-run-${Date.now()}-${Math.random().toString(16).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/testing/synthetic/src/synthetic-monitor.ts#
- L59 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>synthetic-run-${Date.now()}-${Math.random().toString(16).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/testing/synthetic/src/user-journey-tests.ts#
- L38 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>journey-run-${Date.now()}-${Math.random().toString(16).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/agent.ts#
- L634 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/conversation.ts#
- L653 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/events.ts#
- L664 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/memory.ts#
- L552 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/tool.ts#
- L487 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/types/src/user.ts#
- L510 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/voice/ultra-low-latency/src/context-preserver.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
contextId:ctx-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/iris/voice/ultra-low-latency/src/streaming-tts-pipeline.ts#
- L66 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ultra-tts-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-asset-library/src/core/ingestion-pipeline.ts#
- L1810 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnasset*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/images/multiview.ts#
- L438 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/images/preprocessing.ts#
- L959 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/images/upload.ts#
- L456 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/processing/mesh-processor.ts#
- L1126 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:topology-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2050 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const jobId =rig-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2156 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rig-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/processing/texture-processor.ts#
- L253 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const textureId =upscale-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L575 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const textureId =seamless-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L693 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const textureId =material-id-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L788 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const textureId =udim-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/prompts/history.ts#
- L523 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/prompts/optimizer.ts#
- L913 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/providers/base-provider.ts#
- L156 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${this.type}_${Date.now()}_${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/results/comparison.ts#
- L420 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/results/preview.ts#
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L371 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/results/selection.ts#
- L373 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/results/storage.ts#
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-generation/src/workflow/generation-service.ts#
- L220 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:queue*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L263 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:queue*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/3d-inference-local/src/server/provider-rest-api.ts#
- L370 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>local*${Date.now()}*${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/orchestration/analytics-reporting.ts#
- L731 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/orchestration/cost-optimization-engine.ts#
- L574 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/orchestration/quality-assurance-pipeline.ts#
- L769 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/orchestration/unified-generation-pipeline.ts#
- L753 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/animation/animatediff-lightning-provider.ts#
- L1226 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const seed = request.seed ?? Math.floor(Math.random() * 2147483647); - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
- L1277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanimdiff-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/civitai-link-provider.ts#
- L730 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/collection-management-provider.ts#
- L958 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =col*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1163 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:item*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:link*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1308 —
ALLOW(HIGH, ruleid-token-toString)- Code:
url:https://civitai.com/collections/${collection.id}/shared/${Math.random().toString(36).substring(2, 15)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/content-safety-provider.ts#
- L553 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/creator-monetization-provider.ts#
- L705 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/model-comparison-provider.ts#
- L1069 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:gen*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1138 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cmp*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1230 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:diff*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1303 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:batch*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1448 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:report*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1508 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:suite*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/model-quality-provider.ts#
- L676 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/model-versioning-provider.ts#
- L1317 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pin*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1490 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sub*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/civitai/usage-control-provider.ts#
- L1239 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:policy*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1484 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1654 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/controlnet/controlnet-provider.ts#
- L1417 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/audio-enhancement/audio-isolation.ts#
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returniso*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as IsolationJobId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/audio-enhancement/audio-restoration.ts#
- L179 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrest*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as RestorationJobId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/audio-enhancement/stem-separation.ts#
- L76 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstem*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as StemJobId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/conversational-ai-provider.ts#
- L100 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/dubbing-studio/multi-speaker.ts#
- L70 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnspeaker*${Date.now()}*${Math.random().toString(36).substring(2, 8)}as SpeakerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/pronunciation-dictionary/learning-service.ts#
- L277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/streaming-optimization/latency-monitoring.ts#
- L310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/streaming-optimization/latency-optimizer.ts#
- L83 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconn*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L87 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/voice-analytics/ab-testing.ts#
- L49 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntest*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as TestId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L53 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvar*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as VariantId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/voice-analytics/quality-metrics.ts#
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanalytics*${Date.now()}*${Math.random().toString(36).substring(2, 10)}as AnalyticsId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnalert*${Date.now()}*${Math.random().toString(36).substring(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/voice-analytics/usage-analytics.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanalytics*${Date.now()}*${Math.random().toString(36).substring(2, 10)}as AnalyticsId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/conversational-ai/voice-marketplace/monetization.ts#
- L511 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:payout*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/image-generation/stability-provider.ts#
- L885 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstab*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/tts/elevenlabs-provider.ts#
- L420 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =session-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1394 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:evt-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/usage/usage-tracker.ts#
- L1254 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnusage*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-generation/hunyuan-provider.ts#
- L653 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnhyvideo*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-generation/ltx-provider.ts#
- L717 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnltx*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-generation/wan-provider.ts#
- L756 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwan*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-processing/rife-provider.ts#
- L786 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-processing/rtx-provider.ts#
- L1312 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-providers/src/providers/video-processing/topaz-provider.ts#
- L1447 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substring(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-video/src/providers/runway-client.ts#
- L738 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:runway*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-video/src/providers/video-provider-client.ts#
- L1829 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${provider}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-video/src/self-hosted/svd-server.ts#
- L414 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:svd*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/ai-video/src/workflow/video-workflow-manager.ts#
- L204 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const jobId =job*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/anomaly-detection/src/anomaly-detection-service.ts#
- L1063 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndet*${Date.now()}*${Math.random().toString(36).slice(2, 8)}as DetectionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/generation/music-generator.ts#
- L176 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generationId =gen*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/generation/self-hosted.ts#
- L780 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsa*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1053 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmg*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1253 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnac*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvoice*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1694 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnqa*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/generation/sfx-provider.ts#
- L683 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * envelope; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L705 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * envelope; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L717 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * modulation; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L745 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const noise = (Math.random() * 2 - 1) * envelope * 0.3; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L839 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsfx*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/generation/suno-provider.ts#
- L739 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ref*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L814 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ref*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L845 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ref*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1156 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =sep*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2315 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =ext*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2391 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =cont*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/generation/udio-provider.ts#
- L589 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =analysis*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L746 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =separation*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L975 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =preview*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/audio-generation/src/voice/elevenlabs-client.ts#
- L1098 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tts*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1293 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const projectId =project*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1400 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:chapter*${Date.now()}*${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1795 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const dictionaryId =dict*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1796 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const versionId =v*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1865 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const versionId =v*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1907 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const versionId =v*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1963 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const versionId =v*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2328 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =session*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2411 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const takeId =take*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2907 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =direction*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2923 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const templateId =template*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3013 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const profileId =profile*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3147 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const contextId =scene*${Date.now()}*${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3393 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:correction-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3412 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:suggestion-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3518 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:suggestion-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3863 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const newId =correction-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4047 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:validation-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4441 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:consistency-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/client/src/http.ts#
- L369 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/llm-providers/src/client/llm-client.ts#
- L1317 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Fallback: manual v4 — uses Math.random as the entropy source ONLY when - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/isis/llm-providers/src/rate-limiter/rate-limiter.ts#
- L295 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 0.5 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/isis/operation-orchestrator/src/retry-orchestrator/retry-orchestrator.ts#
- L285 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = (Math.random() * 2 - 1) * jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/isis/seedance-provider/src/fal-seedance-client.ts#
- L471 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.round(delay * 0.2 * Math.random()); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/isis/seedance-provider/src/piapi-seedance-client.ts#
- L405 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.round(delay * 0.2 * Math.random()); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/isis/seedance-provider/src/volcengine-ark-client.ts#
- L469 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.round(exponentialDelay * 0.2 * Math.random()); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/isis/workflows/src/consistency/identity-profiles.ts#
- L157 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/workflows/src/consistency/scene-profiles.ts#
- L120 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/workflows/src/consistency/shot-profiles.ts#
- L126 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/workflows/src/consistency/wardrobe-profiles.ts#
- L135 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/isis/workflows/src/seed/seed-manager.ts#
- L93 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return Math.floor(Math.random() * (MAX_SEED + 1)); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
libs/isis/workflows/src/templates/keyframe-interpolation-flows.ts#
- L395 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: asNonEmptyString(profile.id) ??variant-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ai-ml-models/src/behavioral-pattern.ts#
- L179 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2677 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L2678 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/kuanyin/ai-ml-models/src/cognitive-reframing.ts#
- L177 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ai-ml-models/src/community-health-model.ts#
- L182 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ai-ml-models/src/emotional-state-detection.ts#
- L181 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts#
- L182 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2693 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const region = culturalRegions[Math.floor(Math.random() * culturalRegions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L4807 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const dropoutNoise = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L4821 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const memberNoise = (Math.random() - 0.5) * 0.08; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/kuanyin/ai-ml-models/src/intent-classification.ts#
- L180 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4621 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const perturbedValues = baseDistValues.map((v) => v + (Math.random() - 0.5) * 0.05); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/kuanyin/community-harmony/src/conflict-detection.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/community-harmony/src/culture-cultivation.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/community-harmony/src/post-incident-healing.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/community-harmony/src/raid-defense.ts#
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/community-harmony/src/temperature-monitor.ts#
- L82 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/cross-domain/src/aphrodite-integration.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/cross-domain/src/hathor-integration.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/cross-domain/src/lilith-integration.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/cross-domain/src/platform-wide-integration.ts#
- L169 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/cross-domain/src/yemaya-integration.ts#
- L41 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/dharma-analytics/src/community-health-metrics.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/dharma-analytics/src/individual-dharma-path.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/dharma-analytics/src/moderation-transparency.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/dharma-analytics/src/predictive-wellness.ts#
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/dharma-analytics/src/wisdom-reports.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/foundation/src/errors.ts#
- L688 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1739 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = options.baseDelayMs * Math.pow(2, attempt - 1) * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/kuanyin/merit-karma/src/achievement-system.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/merit-karma/src/karma-visibility.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/merit-karma/src/merit-accumulation.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/merit-karma/src/merit-calculation.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/merit-karma/src/privilege-tiers.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/alternative-expression.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnae-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/cognitive-reframing.ts#
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/compassion-nudges.ts#
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncn-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/pause-breathe.ts#
- L73 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpb-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/perspective-shift.ts#
- L54 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnps-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/mindful-friction/src/samma-vaca.ts#
- L61 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsv-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/boundary-enforcement.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/ncii-deepfake-protection.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/parasocial-detection.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/performer-dashboard.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/performer-wellness.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/performer-protection/src/real-time-shield.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/accountability-tracking.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/empathy-training.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/journey-progress.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/reintegration-pathways.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/restorative-circles.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/rehabilitation/src/shadow-work-journeys.ts#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/sdk-api/src/event-system.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L135 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/kuanyin/sdk-api/src/graphql-api.ts#
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L135 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/kuanyin/sdk-api/src/rest-api-endpoints.ts#
- L29 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L134 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/kuanyin/sdk-api/src/typescript-sdk.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L133 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L1860 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L2452 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noiseComponent = (Math.random() - 0.5) * 10; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2784 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = expDelay * jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/kuanyin/ui-components/src/analytics-dashboard-components.ts#
- L66 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ui-components/src/merit-karma-components.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ui-components/src/mindful-friction-components.ts#
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmfc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ui-components/src/performer-dashboard-components.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kuanyin/ui-components/src/rehabilitation-journey-components.ts#
- L64 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrjc-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/lakshmi/accounts/src/sync/mfa.ts#
- L246 —
ALLOW(HIGH, rulecomment-reference)- Code:
// for a security-relevant session id rather than Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/lakshmi/core/src/calculations/risk-metrics.ts#
- L215 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L217 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/lakshmi/investments/src/risk/var.ts#
- L361 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.max(1e-10, Math.random()); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L362 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/lakshmi/security/src/differential-privacy.ts#
- L214 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
export function gaussianNoise(sigma: number, rng: () => number = Math.random): number { - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/lilith/common/csprng-ids.ts#
- L4 —
ALLOW(HIGH, rulecomment-reference)- Code:
* (crypto.randomBytes/crypto.randomUUID) rather thanMath.random, so - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L11 —
ALLOW(HIGH, rulecomment-reference)- Code:
* migrate offMath.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L20 —
ALLOW(HIGH, rulecomment-reference)- Code:
* shape of priorMath.random().toString(36).substr(2, N)callsites. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L44 —
ALLOW(HIGH, rulecomment-reference)- Code:
* for ``${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, N)}``. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L53 —
ALLOW(HIGH, rulecomment-reference)- Code:
* for ``${prefix}-${Date.now()}-${Math.random().toString(36).substr(2, N)}``. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L94 —
ALLOW(HIGH, rulecomment-reference)- Code:
* anti-patternarr[Math.floor(Math.random() * arr.length)]which leaks - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/lilith/common/index.ts#
- L66 —
ALLOW(HIGH, rulecomment-reference)- Code:
// CSPRNG identifier helpers — use these everywhere in place of Math.random. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/lilith/common/language-detection.ts#
- L917 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlang-det-${Date.now()}-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/lilith/sdk/src/auth.ts#
- L926 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId: result.sessionId ??session-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/lilith/service-lib/ai-error-recovery.ts#
- L554 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterAmount = delay * 0.25 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/lilith/service-lib/comfyui/RunComfyClient.ts#
- L262 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = cappedDelay * config.jitterFactor * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/lilith/service-lib/test-helpers.ts#
- L541 —
ALLOW(HIGH, ruleid-token-toString)- Code:
email:test.${Date.now()}.${Math.random().toString(36).substring(7)}@example.com, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/lilith/service-lib/tracing.ts#
- L441 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncorrelation-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maat/agents/src/federated-learning-framework.ts#
- L322 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
while (u1 === 0) u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L323 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
while (u2 === 0) u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L394 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
new Float32Array(len).map(() => (Math.random() - 0.5) * 1e-8) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L624 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...data].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L884 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const selected = [...allIds].sort(() => Math.random() - 0.5).slice(0, numSelected); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/maat/agents/src/rl-capital-allocation-env.ts#
- L389 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.max(1e-10, Math.random()); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L390 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L601 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
scenario = all[Math.floor(Math.random() * all.length)] as MarketScenario; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/maat/intelligence/src/voice-command-interface.ts#
- L1102 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
0.05 * (Math.random() - 0.5); // noise floor - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/maat/reporting/src/adhoc-report-builder.ts#
- L282 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}.toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maat/reporting/src/report-distribution.ts#
- L160 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}.toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maat/sdk/src/webhook-manager.ts#
- L171 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = exponential * (0.8 + Math.random() * 0.4); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L433 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:EVT-${Date.now().toString(36).toUpperCase()}-${Math.random().toString(36).slice(2, 6).toUpperCase()}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maat/workforce/src/org-design-modeler.ts#
- L330 —
ALLOW(HIGH, ruleid-token-toString)- Code:
structureId:org-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/client/src/launcher-integration.ts#
- L774 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>launch*${Math.random().toString(36).slice(2, 10)}*${Date.now().toString(36)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/client/src/offline-mode-support.ts#
- L281 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>offlineop${Math.random().toString(36).slice(2, 10)}_${Date.now().toString(36)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/database/src/backup-restore.ts#
- L139 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const backupId =bkp-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/database/src/data-export-tools.ts#
- L46 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const jobId =export-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/testing/src/visual-testing/particle-effect-tests.ts#
- L61 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const angle = (Math.random() - 0.5) * spreadRad; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/maya/testing/src/visual-testing/post-processing-tests.ts#
- L66 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * intensity * 255; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/maya/tooling/src/asset-tools/navmesh-generation-tools.ts#
- L65 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
center: { x: (Math.random() - 0.5) * 200, y: 0, z: (Math.random() - 0.5) * 200 }, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/maya/tooling/src/profiling/telemetry-collection.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =session*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/tooling/src/world-editor/asset-browser.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const assetId =asset*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/maya/tooling/src/world-editor/foliage-painting-tools.ts#
- L71 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jx = (Math.random() - 0.5) * brush.jitter_m; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L72 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jz = (Math.random() - 0.5) * brush.jitter_m; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/meditation/breathing/src/builder.ts#
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id =custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L493 —
ALLOW(HIGH, ruleid-token-toString)- Code:
cloned.id =custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/breathing/src/exercise.ts#
- L59 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbreathing-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/breathing/src/patterns.ts#
- L610 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/offline/src/queue.ts#
- L87 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/progress/src/sync.ts#
- L494 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/session/src/manager.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/session/src/scheduling.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/timer/src/presets.ts#
- L638 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/meditation/timer/src/timer.ts#
- L68 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/agents-types/src/communication/communication.ts#
- L581 —
ALLOW(HIGH, ruleid-token-toString)- Code:
knowledgeId:knowledge*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L598 —
ALLOW(HIGH, ruleid-token-toString)- Code:
taskId:bbtask${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/agents/src/agents/feedback-agent.ts#
- L323 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const message = templates[Math.floor(Math.random() * templates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/metis/agents/src/agents/tutor-agent.ts#
- L1247 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``handoff_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``handoff_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
libs/metis/agents/src/core/types.ts#
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/api-client/src/retry/retry.ts#
- L84 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/metis/api-client/src/websocket/websocket.ts#
- L393 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitteredDelay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/metis/assessment/src/feedback/feedback.ts#
- L435 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return arr[Math.floor(Math.random() * arr.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/metis/assessment/src/feedback/portfolio-generator.ts#
- L416 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
id:entry*${Date.now()}*${Math.floor(Math.random() * 10000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/metis/integrations/src/hathor-integration.ts#
- L102 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:world*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L129 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:region*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L228 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:flow*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/integrations/src/lilith-integration.ts#
- L153 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:turn*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L304 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =lilith*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/integrations/src/shared-libraries.ts#
- L426 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/integrations/src/sophia-integration.ts#
- L1098 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cm*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/integrations/src/yemaya-integration.ts#
- L215 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:st*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L216 —
ALLOW(HIGH, ruleid-token-toString)- Code:
outputImageId:img*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L586 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ve*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L587 —
ALLOW(HIGH, ruleid-token-toString)- Code:
outputVideoId:vid*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L694 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:thumb*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L697 —
ALLOW(HIGH, ruleid-token-toString)- Code:
imageId:imgthumb${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L923 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:anim*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L924 —
ALLOW(HIGH, ruleid-token-toString)- Code:
outputAssetId:asset*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L967 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sequenceId =diag*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1017 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const vizId =dviz*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/knowledge-graph/src/applications/curriculum-planner.ts#
- L12 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/knowledge-graph/src/construction/graph-store.ts#
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/knowledge-graph/src/construction/graph-versioning.ts#
- L19 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnv-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/llm-client/src/content-generator/content-generator.ts#
- L1437 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/llm-client/src/llm-client/llm-client.ts#
- L941 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * exponentialDelay * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/metis/prompt-management/src/pedagogical-prompt/pedagogical-prompt.ts#
- L786 —
ALLOW(HIGH, rulecomment-reference)- Code:
// previousMath.random()introduced run-to-run variation that - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/metis/quality/src/infrastructure/types.ts#
- L289 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:report-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/metis/tutoring/src/scaffolding/scaffolding.ts#
- L173 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return items[Math.floor(Math.random() * items.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/mnemosyne/aesthetics/src/aesthetics.ts#
- L597 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
styleAttributes: attributes.map((a) => ({ attribute: a, score: 0.5 + Math.random() * 0.4 })), - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/mnemosyne/classical-tools/src/classical-tools.ts#
- L464 —
ALLOW(HIGH, ruleid-token-toString)- Code:
alignmentId:align*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L736 —
ALLOW(HIGH, ruleid-token-toString)- Code:
annotationId:ann*${textId}*${Date.now()}_${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L866 —
ALLOW(HIGH, ruleid-token-toString)- Code:
editId:edit*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L908 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exportId:export*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/community/src/community.ts#
- L218 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reportId:report*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L254 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId:session*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L386 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:msg*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L402 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =corr*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L610 —
ALLOW(HIGH, ruleid-token-toString)- Code:
elementId:el*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L666 —
ALLOW(HIGH, ruleid-token-toString)- Code:
momentId:moment*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L694 —
ALLOW(HIGH, ruleid-token-toString)- Code:
correctionId:mc*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L900 —
ALLOW(HIGH, ruleid-token-toString)- Code:
roomId:room*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1038 —
ALLOW(HIGH, ruleid-token-toString)- Code:
segmentId:seg*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1207 —
ALLOW(HIGH, ruleid-token-toString)- Code:
feedbackId:fb*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1366 —
ALLOW(HIGH, ruleid-token-toString)- Code:
annotationId:ann*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1392 —
ALLOW(HIGH, ruleid-token-toString)- Code:
replyId:reply*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1529 —
ALLOW(HIGH, ruleid-token-toString)- Code:
groupId:grp*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/experience/src/experience.ts#
- L336 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return actions[Math.floor(Math.random() * actions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/mnemosyne/gamification-plus/src/gamification-plus.ts#
- L240 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:xpevent${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L293 —
ALLOW(HIGH, ruleid-token-toString)- Code:
challengeId:challenge*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L363 —
ALLOW(HIGH, ruleid-token-toString)- Code:
teamId:team*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L952 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:event*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1123 —
ALLOW(HIGH, ruleid-token-toString)- Code:
proposalId:proposal*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/heritage/src/heritage.ts#
- L647 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ann-${Date.now()}-${Math.random().toString(36).slice(2, 7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/knowledge-graph/src/knowledge-graph.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { termType: 'BlankNode', value: id ??b${Math.random().toString(36).slice(2, 8)}}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/philology/src/philology.ts#
- L1928 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
const char = chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/mnemosyne/platform/src/platform.ts#
- L319 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:urn:uuid:${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1845 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sync-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1901 —
ALLOW(HIGH, ruleid-token-toString)- Code:
deviceId:${platform}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2136 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:content-${type}-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2196 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:course-${Date.now()}-${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2220 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:module-${Date.now()}-${Math.random().toString(36).slice(2, 4)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/polyglot/src/vocab-grammar-extended.ts#
- L1570 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:goal-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/pronunciation/src/pronunciation.ts#
- L511 —
ALLOW(HIGH, ruleid-token-toString)- Code:
recordingId:rec*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L598 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:req*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L886 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId:vcs*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L911 —
ALLOW(HIGH, ruleid-token-toString)- Code:
turnId:turn*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1059 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const verificationCode = Math.random().toString(36).slice(2, 14).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/mnemosyne/writing/src/writing.ts#
- L242 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ruleId:custom*${language}*${Date.now()}_${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L589 —
ALLOW(HIGH, ruleid-token-toString)- Code:
entryId:hist*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L637 —
ALLOW(HIGH, ruleid-token-toString)- Code:
checkId:check*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L915 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exerciseId:ex*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L958 —
ALLOW(HIGH, ruleid-token-toString)- Code:
submissionId:sub*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1112 —
ALLOW(HIGH, ruleid-token-toString)- Code:
reviewId:review*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/docs/src/api/api-explorer.ts#
- L215 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const token =neith-col-${Math.random().toString(36).slice(2, 18)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/docs/src/api/rate-limits.ts#
- L56 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 1000; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/neith/integration-maya/src/metaverse-platform/economy.ts#
- L207 —
ALLOW(HIGH, ruleid-token-toString)- Code:
listingId:auction*${now.getTime()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L359 —
ALLOW(HIGH, ruleid-token-toString)- Code:
listingId:listing*${now.getTime()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/qa/src/code-quality/security.ts#
- L172 —
ALLOW(HIGH, rulecomment-reference)- Code:
// ── Math.random() for security ─────────────────────────────────────────── - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L179 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Look for Math.random() near security-sensitive keywords - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/neith/release/src/distribution/cdn.ts#
- L190 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:inv-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/distribution/signature.ts#
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sig-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/distribution/trial-versions.ts#
- L96 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:trial-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/distribution/volume-licensing.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:assign-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L233 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/pipeline/beta-programs.ts#
- L200 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:fb-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/pipeline/early-access.ts#
- L332 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/pipeline/hotfix.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:hf-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/pipeline/lts-support.ts#
- L116 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =bp-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/release/src/pipeline/release-automation.ts#
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:run-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/testing/src/e2e/vr-xr.ts#
- L270 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =anchor-${Date.now()}-${Math.random().toString(36).slice(2, 7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/testing/src/integration/isolation.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.namespace = testId ??test*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/testing/src/integration/retry.ts#
- L41 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = 1 + (Math.random() * 2 - 1) * this.jitterFactor; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/neith/testing/src/unit/factories.ts#
- L222 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return names[Math.floor(Math.random() * names.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L239 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return names[Math.floor(Math.random() * names.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L275 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return${protocol}://${domains[Math.floor(Math.random() * domains.length)]}${paths[Math.floor(Math.random() * paths.length)]}; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L291 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
pick: <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]!, - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L295 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
Array.from({ length }, () => charset[Math.floor(Math.random() * charset.length)]).join(''), - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/neith/testing/src/unit/fixtures.ts#
- L180 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const dirPath =/tmp/${prefix}-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/testing/src/unit/ts-infra.ts#
- L439 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const basePath =/tmp/test-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/training/src/user/community-forums.ts#
- L101 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:thread-${Date.now()}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L181 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:reply-${Date.now()}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/neith/training/src/user/webinars.ts#
- L134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
verificationCode:NWB-${Math.random().toString(36).slice(2, 10).toUpperCase()}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nisaba/annotations/src/collaborative-annotations.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nisaba/client/src/api-client.ts#
- L1324 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const randomOffset = (Math.random() * 2 - 1) * jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/nisaba/standards/src/reference-linked-data.ts#
- L4053 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: options?.id ??urn:annotation:${Date.now()}-${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nisaba/workspace/src/personal-library-export.ts#
- L804 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const r = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nisaba/workspace/src/research-environment.ts#
- L345 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/core/src/temperature-sampling.ts#
- L266 —
ALLOW(HIGH, rulerng-factory)- Code:
this.random = () => Math.random(); - Rationale: RNG abstraction wrapper exposing Math.random as a default; callers can override with seeded RNG.
- Code:
libs/nous/image-control/src/concept-sliders-lora-directions.ts#
- L584 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/image-control/src/controlnet-plus-plus-training-pipeline.ts#
- L370 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/image-control/src/omini-control-training-pipeline.ts#
- L384 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/image-control/src/streamdiffusion-image-control-integration.ts#
- L686 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/agent-communication.ts#
- L263 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>msg-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L266 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>sub-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L269 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>q-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/agent-coordination.ts#
- L296 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>coord-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L299 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>action-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L302 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>decision-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/agent-delegation.ts#
- L329 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>delegation-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/agent-memory.ts#
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.idFactory ?? (() =>memory-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/agent-supervision.ts#
- L361 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>signal-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L364 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>incident-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/episodic-memory.ts#
- L375 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>episode-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/long-term-memory.ts#
- L427 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.idFactory ?? (() =>ltm-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/multi-agent-systems.ts#
- L292 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>multi-task-${this.now()}-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/prompt-versioning.ts#
- L263 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>${Math.random().toString(36).slice(2, 10)}${Math.random().toString(36).slice(2, 6)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/semantic-memory.ts#
- L440 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>concept-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L443 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>relation-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/short-term-memory.ts#
- L315 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.idFactory ?? (() =>stm-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/llm/src/working-memory.ts#
- L350 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.slotIdFactory ?? (() =>wm-${this.now()}-${Math.random().toString(36).slice(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/adapter-tuning.ts#
- L609 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/best-of-n-sampling.ts#
- L571 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/bradley-terry-model.ts#
- L191 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/catastrophic-forgetting-prevention.ts#
- L875 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/chat-fine-tuning.ts#
- L442 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/checkpoint-management.ts#
- L366 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/combined-diffusion-acceleration-stack.ts#
- L462 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/comparison-data-collection.ts#
- L324 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/concept-sliders-training.ts#
- L479 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/consistency-model-inference.ts#
- L399 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/consistency-model-training.ts#
- L934 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/consistency-training-data-pipeline.ts#
- L400 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/constitutional-ai.ts#
- L600 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/continual-learning.ts#
- L510 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/curriculum-learning.ts#
- L677 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/deepcache-training-free-acceleration.ts#
- L694 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/demofusion-progressive-upscaling.ts#
- L481 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-acceleration-benchmark.ts#
- L493 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>accel-bench-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-boft-training.ts#
- L1027 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-curriculum-dpo.ts#
- L956 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-dora-training.ts#
- L1035 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-dpo-training.ts#
- L802 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-lokr-training.ts#
- L1044 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-oft-training.ts#
- L1040 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-preference-dataset-preparation.ts#
- L579 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>diffusion-pref-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-rich-preference-optimization.ts#
- L607 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>diffusion-rpo-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/diffusion-spo-training.ts#
- L467 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>diffusion-spo-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/dora-tuning.ts#
- L436 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/dpo-training.ts#
- L580 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/fault-tolerance.ts#
- L343 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/few-step-generation-quality-benchmark.ts#
- L734 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flow-matching-lcm-lora.ts#
- L1383 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flow-matching-progressive-score-distillation.ts#
- L962 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flow-matching-scheduler-optimization.ts#
- L705 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>flow-solver-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flux-distilled-model-deployment.ts#
- L959 —
ALLOW(HIGH, ruleid-token-toString)- Code:
(() =>flux-distilled-deploy-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flux-distilled-model-quality-comparison.ts#
- L665 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.randomId ?? (() =>flux-distill-${Math.random().toString(36).slice(2, 10)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/flux-dpo-training.ts#
- L645 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/fora-attention-reuse-temporal-acceleration.ts#
- L705 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/freefuse-multi-lora-routing.ts#
- L367 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/freeu-skip-backbone-boosting.ts#
- L384 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/harmlessness-training.ts#
- L567 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/helpfulness-training.ts#
- L592 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/hidiffusion-training-free-high-resolution-generation.ts#
- L583 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/high-resolution-quality-validation.ts#
- L351 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/honesty-training.ts#
- L586 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/ia3-tuning.ts#
- L507 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/instruction-tuning.ts#
- L320 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/ipo-training.ts#
- L546 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/iterative-refinement.ts#
- L490 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/knowledge-distillation.ts#
- L614 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/kto-training.ts#
- L581 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lcm-lora-training.ts#
- L951 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lora-composition-visualization.ts#
- L632 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lora-conflict-detection.ts#
- L958 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lora-fine-tuning.ts#
- L550 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lora-semantic-registry.ts#
- L489 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lora-variant-comparison.ts#
- L450 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/lycoris-framework-integration.ts#
- L1438 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/multi-lora-weight-interpolation.ts#
- L288 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/multi-scale-generation-pipeline.ts#
- L478 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/multi-task-fine-tuning.ts#
- L518 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/orpo-training.ts#
- L567 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/p-tuning.ts#
- L569 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/peft-integration.ts#
- L155 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/ppo-training.ts#
- L318 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/preference-aligned-inference.ts#
- L369 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/preference-learning.ts#
- L505 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/prefix-tuning.ts#
- L512 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/progressive-few-step-refinement.ts#
- L613 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/progressive-training.ts#
- L623 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/prompt-tuning.ts#
- L443 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/pyramid-attention-broadcast-video-acceleration.ts#
- L632 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/qlora-fine-tuning.ts#
- L458 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/red-teaming.ts#
- L775 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/rejection-sampling.ts#
- L593 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/resolution-adaptive-inference.ts#
- L451 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/reward-modeling.ts#
- L539 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/rlaif.ts#
- L513 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/safety-training.ts#
- L557 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/sageattention-diffusion-integration.ts#
- L526 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/scot-training.ts#
- L1350 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/self-distillation.ts#
- L564 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/self-play-training.ts#
- L498 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/senseflow-flow-matching-distillation.ts#
- L1061 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-batch-of-one-optimization.ts#
- L287 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-io-streaming.ts#
- L306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-realtime-controlnet.ts#
- L671 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-realtime-generation-pipeline.ts#
- L561 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-realtime-style-transfer.ts#
- L451 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-residual-denoising.ts#
- L320 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/streamdiffusion-vram-optimization.ts#
- L483 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/supervised-fine-tuning.ts#
- L312 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/teacher-student-training.ts#
- L528 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/tiled-diffusion-overlap-blending.ts#
- L484 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/token-merging-diffusion-acceleration.ts#
- L397 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/training/src/unified-adapter-loading.ts#
- L526 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 10)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nous/vision/src/dreambooth-training.ts#
- L252 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.randomId = options.randomId ?? (() => Math.random().toString(36).slice(2, 12)); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nyx/catalogs/deep-sky/messier/src/index.ts#
- L643 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...this.objects].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/nyx/catalogs/deep-sky/pulsars/src/index.ts#
- L218 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...ALL_PULSARS].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/nyx/catalogs/deep-sky/snr/src/index.ts#
- L698 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...ALL_SNRS].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/nyx/catalogs/star-query/src/deduplication.ts#
- L591 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmerged:${Date.now()}:${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nyx/catalogs/supernovae/src/historical.ts#
- L2254 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...HISTORICAL_SUPERNOVAE].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/nyx/education/quiz-system/src/feedback.ts#
- L483 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const prefix = encouragements[Math.floor(Math.random() * encouragements.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L492 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const prefix = softenings[Math.floor(Math.random() * softenings.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/nyx/education/quiz-system/src/state.ts#
- L843 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnattempt-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/nyx/orbital/src/n-body.ts#
- L1918 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const theta = Math.random() * 2 * Math.PI; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/nyx/renderer/background/src/cmb.ts#
- L1616 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const theta2 = theta1 + (Math.random() - 0.5) * angularScale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1617 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const phi2 = phi1 + (Math.random() - 0.5) * angularScale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/nyx/renderer/post-processing/src/motion-blur.ts#
- L299 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * jitterScale; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oshun/analytics/src/client.ts#
- L110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/auth/src/billing-store.ts#
- L1512 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/auth/src/customer-support-history-store.ts#
- L256 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:msg*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/auth/src/data-rights-store.ts#
- L315 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/auth/src/privacy-store.ts#
- L334 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconsent_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/auth/src/sso-coordinator.ts#
- L424 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsso-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/domain-tara/src/ritual-scheduling.ts#
- L491 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntara-ritual-plan-${templateId}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/offline/src/queue.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
private readonly randomId: () => string = () => Math.random().toString(36).slice(2, 10) - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/shell-assistant/src/iris-memory-bridge.ts#
- L1343 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/shell-assistant/src/psyche-session-bridge.ts#
- L560 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/shell-assistant/src/types.ts#
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L149 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/shell-desktop/src/types.ts#
- L696 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}${Date.now().toString(36)}${(idCounter++).toString(36)}${Math.random().toString(36).slice(2, 6)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oshun/shell-routines/src/types.ts#
- L421 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L427 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L433 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L439 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oya/core/src/advanced-pose-estimation.ts#
- L3328 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
.map((a) => ({ action: a, confidence: clamp(confidence * 0.3 * Math.random(), 0, 1) })) - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/oya/core/src/airsim-integration.ts#
- L361 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const gpsNoise = () => (Math.random() - 0.5) * 3.0; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L362 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const imuNoise = () => (Math.random() - 0.5) * 0.04; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L371 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const baroAlt = homeAltitude - truePosition.z + (Math.random() - 0.5) * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/camera-gimbal-api.ts#
- L844 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
rollDeg: 0.02 * (Math.random() - 0.5), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L845 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pitchDeg: 0.03 * (Math.random() - 0.5), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L846 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
yawDeg: 0.01 * (Math.random() - 0.5), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/enterprise-platform.ts#
- L1708 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
for (let i = 0; i < n; i++) r += hex[Math.floor(Math.random() * 16)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/oya/core/src/faa-bvlos-compliance.ts#
- L1093 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const authId =LAANC-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1152 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const planId =UTM-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oya/core/src/gaussian-splatting-integration.ts#
- L3185 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
this.currentParams.pose[j] += (Math.random() - 0.5) * step; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/gazebo-integration.ts#
- L201 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L202 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L385 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L386 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L389 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u3 = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L390 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u4 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L562 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
heights[y * samplesX + x] = (tl + tr + bl + br) / 4 + (Math.random() - 0.5) * amplitude; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L585 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
heights[y * samplesX + x] = sum / count + (Math.random() - 0.5) * amplitude; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/gnn-swarm-intelligence.ts#
- L3702 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const newLogProb = oldLogProb + (Math.random() - 0.5) * 0.01; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L3821 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const perturbation = 1 + (Math.random() - 0.5) * 0.4; // +/- 20% - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/gps-navigation.ts#
- L4873 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L4874 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/jmavsim-integration.ts#
- L411 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noiseSmall = () => (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L424 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const gpsNoise = () => (Math.random() - 0.5) * 2.0; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L536 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
elevations[j * res + i] = baseElevation + (Math.random() - 0.5) * 2 * noiseAmplitude; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/kinematics.ts#
- L1624 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
while (u === 0) u = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1625 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
while (v === 0) v = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/model-inference.ts#
- L320 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
data[i] = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L473 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
data[i] = (Math.random() - 0.5) * 2.0; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L3155 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L3156 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/modern-simulation-platforms.ts#
- L2567 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
entity.heading += (Math.random() - 0.5) * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/natural-language-control.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1085 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
bestPos.x + (Math.random() - 0.5) * perturbScale * 10, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1086 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
bestPos.y + (Math.random() - 0.5) * perturbScale * 10, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1087 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
bestPos.z + (Math.random() - 0.5) * perturbScale * 5 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1089 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const candidateYaw = normalizeAngle(bestYaw + (Math.random() - 0.5) * perturbScale); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1091 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
bestPitch + (Math.random() - 0.5) * perturbScale * 0.5, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/path-planning.ts#
- L3161 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L3162 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/physics-simulation.ts#
- L323 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L324 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const v = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L600 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L601 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L604 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
Math.sqrt(-2 * Math.log(Math.random() || 1e-10)) * Math.cos(2 * Math.PI * Math.random()); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L657 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L658 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const v = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L728 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L729 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const v = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L874 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const dropped = Math.random() < channel.packetLossProbability; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L875 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random() || 1e-10; - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L876 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/sam-integration.ts#
- L3444 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const px = clamp(point[0] + (Math.random() - 0.5) * 0.05, 0, 1); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L3445 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const py = clamp(point[1] + (Math.random() - 0.5) * 0.05, 0, 1); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L4321 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/oya/core/src/sapiens-integration.ts#
- L2330 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/sdk-core.ts#
- L197 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
id += h[Math.floor(Math.random() * 16)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L205 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = exp * 0.2 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/oya/core/src/sitl-integration-framework.ts#
- L355 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L356 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/oya/core/src/swarm-collision-avoidance.ts#
- L2743 —
ALLOW(HIGH, rulecomment-reference)- Code:
* @param rng - Random number generator function. Default Math.random - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/oya/core/src/task-allocation.ts#
- L1301 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const velocity = Array.from({ length: dim }, () => (Math.random() - 0.5) * 2); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1442 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
Array.from({ length: Math.max(1, actionSize) }, () => (Math.random() - 0.5) * 0.1) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/oya/core/src/video-streaming.ts#
- L1210 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =session*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3467 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =aph*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/oya/core/src/visual-slam.ts#
- L1734 —
ALLOW(HIGH, rulecomment-reference)- Code:
* no Math.random, no fixed return literals. Real CUDA backends should - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L3087 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const sample = matches[Math.floor(Math.random() * matches.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/accessibility/src/visual-alerts.ts#
- L354 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert-${Date.now()}-${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/action-safety/src/confirmation.ts#
- L57 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:confirm-${now}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/action-safety/src/safety-checker.ts#
- L285 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:audit-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/aiops-anomaly/src/statistical-detection.ts#
- L81 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/attention-tracker/src/heatmap-generator.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnheatmap*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/attention-tracker/src/lapse-detector.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/attention-tracker/src/shift-detector.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnshift*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/attention-tracker/src/tracker.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/avatar-expressions/src/blendshapes.ts#
- L368 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const addVariation = () => (Math.random() - 0.5) * 2 * randomVariation; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/avatar-expressions/src/micro-expressions.ts#
- L283 —
ALLOW(HIGH, ruleprobability-gate)- Code:
return Math.random() < probability; - Rationale: Compares Math.random() against a configured probability threshold for stochastic gating.
- Code:
libs/psyche/avatar-expressions/src/presets.ts#
- L289 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const randomOffset = (Math.random() - 0.5) * 2 * variation; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/avatar-training/src/backend.ts#
- L226 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const noise = () => (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/avatar-training/src/preprocessing.ts#
- L727 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.95 + Math.random() * 0.05, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L746 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.9 + Math.random() * 0.1, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L769 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
.map(() => (Math.random() - 0.5) * 0.5 * Math.sin(index / 10)), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/behavior-anomaly-detector/src/conflict-detector.ts#
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnconflict-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/behavior-anomaly-detector/src/erratic-behavior-detector.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnerratic-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/behavior-anomaly-detector/src/inactivity-detector.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returninact-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/behavior-prediction/src/behavior-modeler.ts#
- L157 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/browser-automation/src/utils.ts#
- L672 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return value + (Math.random() * 2 - 1) * jitter; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/psyche/conferencing-core/src/conference-session.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).substring(2, 11); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/conferencing-core/src/multi-language-audio.ts#
- L557 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/conferencing-core/src/stream-recording.ts#
- L746 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rnd = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/conferencing-core/src/virtual-camera-switching.ts#
- L1989 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:${layer.id}-copy-${Date.now()}-${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/database-sharding/src/shard-routing.ts#
- L176 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/dialogue-manager/src/conversation-state.ts#
- L187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/dialogue-manager/src/need-prediction.ts#
- L1029 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${idCounter}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/disaster-recovery/src/backup-management.ts#
- L92 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/emotion-recognition/src/learned-fusion.ts#
- L708 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L709 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L2414 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/engagement-detector/src/detector.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returneng*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/gaze-control/src/microsaccade.ts#
- L171 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L172 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L175 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u3 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L176 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u4 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/psyche/gaze-control/src/saccade.ts#
- L88 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L89 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/psyche/gaze-control/src/targets.ts#
- L113 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
direction = (['left', 'right', 'up'] as const)[Math.floor(Math.random() * 3)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L119 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pitch = (Math.random() - 0.5) * 0.4; // -0.2 to 0.2 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L124 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
pitch = (Math.random() - 0.5) * 0.4; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L128 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
yaw = (Math.random() - 0.5) * 0.6; // -0.3 to 0.3 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L133 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
yaw = (Math.random() - 0.5) * 0.6; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/gesture-system/src/controller.ts#
- L268 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const gesture = available[Math.floor(Math.random() * available.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/gesture-system/src/variation.ts#
- L178 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
return (Math.random() - 0.5) * 2 * maxJitter; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/head-movement/src/idle.ts#
- L94 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 0.01, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L95 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 0.01, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L96 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
(Math.random() - 0.5) * 0.005 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/head-movement/src/nods.ts#
- L184 —
ALLOW(HIGH, ruleprobability-gate)- Code:
return Math.random() < probability; - Rationale: Compares Math.random() against a configured probability threshold for stochastic gating.
- Code:
libs/psyche/head-movement/src/tilts.ts#
- L379 —
ALLOW(HIGH, ruletimer-jitter)- Code:
this.nextPauseMs = this.minPauseMs + Math.random() * (this.maxPauseMs - this.minPauseMs); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L386 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitterScale = 1 + (Math.random() - 0.5) * 2 * this.poseJitter; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/k8s-federation/src/cluster-management.ts#
- L124 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/k8s-security/src/irsa.ts#
- L655 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:audit*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/k8s-security/src/pod-security.ts#
- L740 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:audit*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/latency-analysis/src/alerting.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as AlertId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L217 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: existingAlert?.id ??alert*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L324 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/latency-analysis/src/components.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:comp*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as ComponentId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L395 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.traceId =trace*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as TraceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L405 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const spanId =span*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as SpanId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/latency-analysis/src/regression.ts#
- L532 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:reg*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as RegressionId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/meet-integration/src/api.ts#
- L265 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:meet-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/meeting-summarizer/src/summarizer.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-archival/src/types.ts#
- L473 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-core/src/types.ts#
- L515 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-in-context/src/types.ts#
- L344 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-persistence/src/persistence-manager.ts#
- L712 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-tools/src/types.ts#
- L325 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/memory-working/src/types.ts#
- L213 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/micro-expressions/src/blink-patterns.ts#
- L450 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const asymmetry = (Math.random() - 0.5) * 0.15; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/micro-expressions/src/eye-moisture.ts#
- L109 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const asymmetry = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L180 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variance = (Math.random() - 0.5) * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/micro-expressions/src/micro-expressions.ts#
- L354 —
ALLOW(HIGH, ruleprobability-gate)- Code:
return Math.random() < probability; - Rationale: Compares Math.random() against a configured probability threshold for stochastic gating.
- Code:
libs/psyche/micro-expressions/src/subtle-movements.ts#
- L431 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const direction = directions[Math.floor(Math.random() * directions.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L475 —
ALLOW(HIGH, ruleprobability-gate)- Code:
if (Math.random() < probability) { - Rationale: Compares Math.random() against a configured probability threshold for stochastic gating.
- Code:
libs/psyche/ml-log-analysis/src/log-clustering.ts#
- L165 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/mobile-sdk/src/cross-platform.ts#
- L148 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rn*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/mobile-sdk/src/edge-offline.ts#
- L429 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cache*${now}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/mobile-sdk/src/multi-agent.ts#
- L169 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return withExpertise[Math.floor(Math.random() * withExpertise.length)]!.agentId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L172 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return agentList[Math.floor(Math.random() * agentList.length)]!.agentId; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L270 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:msg*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L396 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionId:session*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/nps/src/segmentation.ts#
- L523 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/nps/src/survey-manager.ts#
- L590 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/body-emotion-correlation.ts#
- L488 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L489 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/body-language-mirror.ts#
- L685 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L686 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/body-language-trends.ts#
- L523 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L524 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/confusion-detector.ts#
- L505 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L506 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/distributed-processing.ts#
- L609 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/eating-drinking-detector.ts#
- L605 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L606 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/engagement-scorer.ts#
- L650 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L651 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/fatigue-detector.ts#
- L485 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L486 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/informal-leader-detector.ts#
- L510 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/intervention-trigger.ts#
- L1038 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1039 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/meeting-history-context.ts#
- L585 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L586 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/micro-movement-detector.ts#
- L561 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L562 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/off-camera-talking-detector.ts#
- L742 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L743 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/participant-state-prediction.ts#
- L475 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/processing-latency-monitor.ts#
- L605 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L606 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/recording-manager.ts#
- L409 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L410 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/relationship-inference.ts#
- L628 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L629 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/stepped-away-detector.ts#
- L545 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L546 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participant-manager/src/subtle-emotion-detector.ts#
- L515 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L516 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const counter = Math.random().toString(36).substring(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/participation-tracker/src/tracker.ts#
- L49 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/proactive-suggestions/src/signal-analyzer.ts#
- L208 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/sandbox/src/types.ts#
- L690 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsandbox*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/satisfaction/src/survey-manager.ts#
- L1034 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/aria-complex-widget-optimizer.ts#
- L357 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L364 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/aria-live-region-optimizer.ts#
- L338 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlr*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L345 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlri*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/asl-fingerspelling-generation.ts#
- L573 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/asl-sign-library.ts#
- L4445 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnaslsign${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4672 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = pool.sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L4679 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
.sort(() => Math.random() - 0.5) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L4683 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
() => Math.random() - 0.5 - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/screen-analysis/src/bsl-sign-support.ts#
- L3091 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbslsign${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/caption-position-memory.ts#
- L390 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/content-change-tracker.ts#
- L352 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/content-relevance-scorer.ts#
- L453 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L464 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/crowdsourced-evaluation.ts#
- L533 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/cultural-sign-variation.ts#
- L363 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/deaf-community-testing.ts#
- L697 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/haptic-feedback-option.ts#
- L1129 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Math.random() — same input (waveform, frequency, - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/psyche/screen-analysis/src/human-evaluation.ts#
- L397 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/input-purpose-identifier.ts#
- L672 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnipr*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/pip-sign-overlay.ts#
- L379 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/pm-tool-detector.ts#
- L765 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/screen-reader-user-testing.ts#
- L309 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-accuracy-validation.ts#
- L308 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-avatar-positioning.ts#
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-avatar-size-config.ts#
- L397 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-language-avatar-model.ts#
- L602 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-language-synthesis.ts#
- L844 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L853 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-language-toggle.ts#
- L332 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-recognition-feedback.ts#
- L358 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/sign-timing-synchronization.ts#
- L428 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/slide-annotation-detector.ts#
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L849 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cluster*${clusterIdCounter.toString(36)}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/transcript-translation.ts#
- L1125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/whiteboard-analyzer.ts#
- L398 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L409 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const rand = Math.random().toString(36).slice(2, 6); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/screen-analysis/src/zoom-reflow-analyzer.ts#
- L347 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrfi*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/slo-alerting/src/burn-rate.ts#
- L280 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:rule*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as AlertRuleId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L386 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``alert_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
) as AlertRuleId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``alert_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
libs/psyche/slo-alerting/src/sli.ts#
- L297 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sli*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as SLIId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/slo-alerting/src/slo.ts#
- L59 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:slo*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as SLOId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/sophia-integration/src/adapter.ts#
- L556 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = baseDelay * this.retryConfig.jitterFactor * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/psyche/tavus-bridge/src/bridge-failover.ts#
- L1350 —
ALLOW(HIGH, ruleid-token-toString)- Code:
fo_${Date.now()}_${Math.random().toString(36).substring(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/bridge.ts#
- L92 —
ALLOW(HIGH, ruleid-token-toString)- Code:
config.id ?? createBridgeId(bridge*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/conference.ts#
- L425 —
ALLOW(HIGH, ruleid-token-toString)- Code:
createConferenceId(conf*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1875 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:meet*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1980 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:meetbot${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2850 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:teams*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2973 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:teamsbot${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/frame-drop-strategy.ts#
- L817 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedIndex = eligible[Math.floor(Math.random() * eligible.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-bridge/src/meet-captions.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??cap*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as CaptionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``cmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as CaptionManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``cmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-bridge/src/meet-recording.ts#
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??mrec*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as MeetRecordingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``mrf_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as MeetRecordingFileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``mrf_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``mrmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as MeetRecordingManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``mrmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-bridge/src/multi-output.ts#
- L1530 —
ALLOW(HIGH, ruleid-token-toString)- Code:
dist_${Date.now()}_${Math.random().toString(36).substring(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/multi-platform-camera.ts#
- L649 —
ALLOW(HIGH, ruleid-token-toString)- Code:
vcam_${this.platform}_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/screen-share-receiver.ts#
- L1309 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id = createStreamId(screenshare*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/teams-chat.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||tcm*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as TeamsChatId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L48 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``tcmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsChatManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``tcmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L56 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``tct_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsChatThreadId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``tct_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-bridge/src/teams-recording.ts#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``trec_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsRecordingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``trec_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L31 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``trf_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsRecordingFileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``trf_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``trmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsRecordingManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``trmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-bridge/src/teams-screen-share.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``tss_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsScreenShareId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``tss_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L59 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``tssm_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as TeamsScreenShareManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``tssm_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-bridge/src/virtual-audio.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
createDeviceId(vaud*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/virtual-camera.ts#
- L95 —
ALLOW(HIGH, ruleid-token-toString)- Code:
createDeviceId(vcam*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/webrtc-receiver.ts#
- L94 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.id ?? createStreamId(webrtc*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/zoom-breakout-rooms.ts#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??br*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as BreakoutRoomId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L32 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??bs*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as BreakoutSessionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``bmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as BreakoutManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``bmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
- L1383 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:bcast*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/zoom-chat.ts#
- L328 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id = createStreamId(zoomchat*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L429 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: options.messageId ??msg*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-bridge/src/zoom-recording.ts#
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??rec*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as RecordingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L32 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??rf*${Date.now()}*${Math.random().toString(36).slice(2, 10)}) as RecordingFileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``rmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
) as RecordingManagerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``rmgr_${Date.now()}_${Math.random().toString(36).slice(2, 10)}
libs/psyche/tavus-client/src/batcher.ts#
- L349 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-client/src/failover.ts#
- L201 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * config.jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/psyche/tavus-conversation/src/analytics.ts#
- L114 —
ALLOW(HIGH, ruleid-token-toString)- Code:
analytics_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L535 —
ALLOW(HIGH, ruleid-token-toString)- Code:
analytics_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-conversation/src/recording.ts#
- L125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
rec_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L533 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const token = Math.random().toString(36).substring(2); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-conversation/src/transcripts.ts#
- L110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
transcript_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createTranscriptSegmentId(seg*${Date.now()}*${Math.random().toString(36).substr(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L655 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.85 + Math.random() * 0.14, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L662 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
? emotions[Math.floor(Math.random() * emotions.length)] - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L672 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: 0.88 + Math.random() * 0.11, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/psyche/tavus-expression/src/expression-ab-testing.ts#
- L272 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexp*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-expression/src/expression-analytics.ts#
- L191 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-expression/src/expression-channel.ts#
- L117 —
ALLOW(HIGH, ruleid-token-toString)- Code:
expr_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-expression/src/lipsync-bridge.ts#
- L204 —
ALLOW(HIGH, ruleid-token-toString)- Code:
lipsync_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/ab-testing.ts#
- L328 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const experimentId =exp*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/automatic-mode-selection.ts#
- L301 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sel_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/dynamic-component-selection.ts#
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
snap_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L352 —
ALLOW(HIGH, ruleid-token-toString)- Code:
dec_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/failover-manager.ts#
- L201 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createFailoverEventId(failover*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L267 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createFailoverEventId(failover*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L347 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:recovery*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/failover-notifications.ts#
- L739 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:notif*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/failover-testing.ts#
- L806 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:fault*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L958 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:run*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/health-checker.ts#
- L106 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createHealthCheckId(check*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L126 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createHealthCheckId(check*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L351 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createHealthCheckId(check*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/hybrid-manager.ts#
- L181 —
ALLOW(HIGH, ruleid-token-toString)- Code:
hybrid_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts#
- L287 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L288 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L493 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
selectedMode = ML_MODES[Math.floor(Math.random() * ML_MODES.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L521 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
selectedMode = ML_MODES[Math.floor(Math.random() * ML_MODES.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-hybrid/src/mode-transition.ts#
- L351 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:plan*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/multi-region-failover.ts#
- L237 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ep_${regionCode}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 6)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/optimal-component-finder.ts#
- L246 —
ALLOW(HIGH, ruleid-token-toString)- Code:
search_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-hybrid/src/predictive-failover.ts#
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
pred_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
alert_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/bulk-document-operations.ts#
- L465 —
ALLOW(HIGH, ruleid-token-toString)- Code:
doc_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/custom-retrieval-strategies.ts#
- L39 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``cstrat_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as CustomStrategyId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``cstrat_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``spipe_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as StrategyPipelineId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``spipe_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
libs/psyche/tavus-knowledge/src/document-access-controls.ts#
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``apol_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as AccessPolicyId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``apol_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
- L53 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``arule_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as AccessRuleId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``arule_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
- L60 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??alog*${Date.now()}*${Math.random().toString(36).substring(2, 8)}) as AuditLogId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/document-analytics.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndar*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as DocumentAnalyticsRecordId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L49 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnde*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as DocumentEventId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/document-categorization.ts#
- L482 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createCategoryId(cat*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/document-manager.ts#
- L146 —
ALLOW(HIGH, ruleid-token-toString)- Code:
doc_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/document-search.ts#
- L40 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsq*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as SearchQueryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??ss*${Date.now()}*${Math.random().toString(36).substring(2, 8)}) as SavedSearchId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/hybrid-retrieval.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``hsrc_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as HybridSourceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``hsrc_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``hqry_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as HybridQueryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``hqry_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
libs/psyche/tavus-knowledge/src/knowledge-manager.ts#
- L213 —
ALLOW(HIGH, ruleid-token-toString)- Code:
col_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/rag-config-manager.ts#
- L171 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createRAGConfigId(rag*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/retrieval-ab-testing.ts#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??exp*${Date.now()}*${Math.random().toString(36).substring(2, 8)}) as ExperimentId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??var*${Date.now()}*${Math.random().toString(36).substring(2, 8)}) as VariantId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L58 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??xpo*${Date.now()}*${Math.random().toString(36).substring(2, 8)}) as ExposureId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/retrieval-analytics.ts#
- L31 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnret*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as RetrievalRecordId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/retrieval-quality-monitoring.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnqr*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as QualityRecordId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/selective-document-sync.ts#
- L556 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createSyncRuleId(rule*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-knowledge/src/unified-search.ts#
- L42 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``usrc_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as UnifiedSearchId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``usrc_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``sprof_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
) as SearchProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``sprof_${Date.now()}_${Math.random().toString(36).substring(2, 8)}
libs/psyche/tavus-llm/src/claude-proxy.ts#
- L313 —
ALLOW(HIGH, ruleid-token-toString)- Code:
requestId:req*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-llm/src/llm-ab-testing.ts#
- L1064 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exp_${Date.now()}_${Math.random().toString(36).substring(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1069 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createVariantId(v.id ??var*${i}*${Math.random().toString(36).substring(2, 8)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1301 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createObservationId(obs*${Date.now()}*${Math.random().toString(36).substring(2, 8)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-llm/src/speculative-inference.ts#
- L365 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const requestId =spec*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L446 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const requestId =specstream${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-llm/src/stream-translator.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.systemFingerprint =fp_${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/memory-backup-restore.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??bak*${Date.now()}*${Math.random().toString(36).slice(2)}) as BackupId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L41 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??rp*${Date.now()}*${Math.random().toString(36).slice(2)}) as RestorePointId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??pol*${Date.now()}*${Math.random().toString(36).slice(2)}) as BackupPolicyId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/memory-conflict-resolution.ts#
- L41 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||cfl*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as ConflictId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||cpol*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as ConflictPolicyId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``cres_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
) as ConflictResolutionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``cres_${Date.now()}_${Math.random().toString(36).slice(2, 8)}
libs/psyche/tavus-memories/src/memory-export-import.ts#
- L787 —
ALLOW(HIGH, ruleid-token-toString)- Code:
backup_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/memory-manager.ts#
- L146 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createMemoryId(mem*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/memory-persona-sharing.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??pool*${Date.now()}*${Math.random().toString(36).slice(2)}) as SharePoolId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L55 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??req*${Date.now()}*${Math.random().toString(36).slice(2)}) as ShareRequestId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L59 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??sub*${Date.now()}*${Math.random().toString(36).slice(2)}) as SubscriptionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??xfer*${Date.now()}*${Math.random().toString(36).slice(2)}) as TransferId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2171 —
ALLOW(HIGH, ruleid-token-toString)- Code:
shared_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/memory-privacy-controls.ts#
- L43 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||ppol*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as PrivacyPolicyId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L47 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||cons*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as ConsentRecordId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ||aud*${Date.now()}*${Math.random().toString(36).slice(2, 8)}) as AuditEntryId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/selective-memory-sync.ts#
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??prof*${Date.now()}*${Math.random().toString(36).slice(2)}) as SyncProfileId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L41 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??rule*${Date.now()}*${Math.random().toString(36).slice(2)}) as SyncRuleId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L45 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return (id ??sched*${Date.now()}*${Math.random().toString(36).slice(2)}) as SyncScheduleId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/store-manager.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createMemoryStoreId(store*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-memories/src/tag-manager.ts#
- L162 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createMemoryTagId(tag*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/custom-compliance-frameworks.ts#
- L704 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createCustomFrameworkId(ccf*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L910 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createComplianceRuleId(crule*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1042 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createComplianceControlId(cctrl*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1365 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createAuditReportId(audit*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/guardrail-ab-testing.ts#
- L1763 —
ALLOW(HIGH, ruleid-token-toString)- Code:
gexp_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1772 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createGuardrailVariantId(gvar*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2060 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createGuardrailExposureId(gexpo*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/guardrail-manager.ts#
- L168 —
ALLOW(HIGH, ruleid-token-toString)- Code:
tmpl_guard_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L744 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:trigger*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L806 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eventId:trigger*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/guardrail-notifications.ts#
- L516 —
ALLOW(HIGH, ruleid-token-toString)- Code:
handler_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L804 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createNotificationId(notif*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L974 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:batch*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/guardrail-suggestion-system.ts#
- L1107 —
ALLOW(HIGH, ruleid-token-toString)- Code:
gsrule_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1179 —
ALLOW(HIGH, ruleid-token-toString)- Code:
gsprof_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
context.requestId ??gsreq*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1531 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createGuardrailSuggestionId(gsug*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/multi-objective-conversations.ts#
- L497 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sess_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1019 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createTransitionRuleId(rule*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/objective-manager.ts#
- L105 —
ALLOW(HIGH, ruleid-token-toString)- Code:
tmpl_obj_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L241 —
ALLOW(HIGH, ruleid-token-toString)- Code:
inst_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-call-analytics.ts#
- L407 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createToolCallLogId(log*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L554 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createCacheEntryId(cache*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1291 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/psyche/tavus-objectives/src/tool-call-anomaly-detection.ts#
- L310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
anom_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L335 —
ALLOW(HIGH, ruleid-token-toString)- Code:
alrt_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-call-approval-workflows.ts#
- L276 —
ALLOW(HIGH, ruleid-token-toString)- Code:
areq_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-call-monitoring-dashboard.ts#
- L732 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.id = createDashboardId(dash*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L810 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createWidgetId(wgt*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1181 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createAlertRuleId(alert*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1463 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createSnapshotId(snap*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2122 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-call-prediction-prefetch.ts#
- L613 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createPredictionId(pred*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L702 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createPrefetchId(pf*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-marketplace-integration.ts#
- L348 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return createReviewId(rev*${Date.now().toString(36)}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L355 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return createInstallationId(inst*${Date.now().toString(36)}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-objectives/src/tool-registration-interface.ts#
- L1083 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createToolHookId(hook*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-perception/src/index.ts#
- L306 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionIdStr ??perception*${Date.now()}*${Math.random().toString(36).substring(2, 9)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-perception/src/learning-perception-optimizer.ts#
- L637 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L638 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1193 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const mode = modes[Math.floor(Math.random() * modes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-perception/src/screen-content-analysis.ts#
- L368 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnelem*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-perception/src/video-forwarder.ts#
- L129 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.streamId =video*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-persona-manager/src/manager.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-persona-manager/src/validation.ts#
- L617 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id: createValidationResultId(vr*${Date.now()}*${Math.random().toString(36).substring(2, 9)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-phoenix/src/frame-sync.ts#
- L153 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sync_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-phoenix/src/multi-avatar.ts#
- L276 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnslot*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-phoenix/src/render-pipeline.ts#
- L143 —
ALLOW(HIGH, ruleid-token-toString)- Code:
pipeline_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-phoenix/src/rendering-fallback.ts#
- L297 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnfb*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L304 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = capped * config.jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/psyche/tavus-phoenix/src/stream-receiver.ts#
- L193 —
ALLOW(HIGH, ruleid-token-toString)- Code:
phoenix_${Date.now()}_${Math.random().toString(36).substr(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/cost-monitoring.ts#
- L1288 —
ALLOW(HIGH, ruleid-token-toString)- Code:
createCostSessionId(costsession${Date.now()}_${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/custom-stt-processor.ts#
- L1042 —
ALLOW(HIGH, ruleid-token-toString)- Code:
session_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/custom-tts-processor.ts#
- L1594 —
ALLOW(HIGH, ruleid-token-toString)- Code:
synth_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/deployment-automation.ts#
- L293 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =deploy*${Date.now()}*${Math.random().toString(36).substring(7)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/monitoring.ts#
- L596 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1017 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/multimodal-fusion-processor.ts#
- L1562 —
ALLOW(HIGH, ruleid-token-toString)- Code:
fusion_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2460 —
ALLOW(HIGH, ruleid-token-toString)- Code:
fusion_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/performance-optimization.ts#
- L376 —
ALLOW(HIGH, ruleid-token-toString)- Code:
prof_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 6)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L386 —
ALLOW(HIGH, ruleid-token-toString)- Code:
bn_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 6)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/pipeline.ts#
- L84 —
ALLOW(HIGH, ruleid-token-toString)- Code:
: createPipelineId(pipeline*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/plugin-marketplace.ts#
- L321 —
ALLOW(HIGH, ruleid-token-toString)- Code:
review_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 6)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/processor.ts#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
config.id ?? createProcessorId(proc*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipecat/src/services.ts#
- L63 —
ALLOW(HIGH, ruleid-token-toString)- Code:
config.id ?? createServiceId(svc*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipeline/src/conversation-templates.ts#
- L567 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:tpl*${now}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipeline/src/data-channel.ts#
- L483 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return createInferenceId(inf*${Date.now()}*${Math.random().toString(36).substring(2, 11)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipeline/src/lifecycle-manager.ts#
- L429 —
ALLOW(HIGH, ruleid-token-toString)- Code:
session_${Date.now()}_${Math.random().toString(36).substring(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-pipeline/src/multi-conversation.ts#
- L444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmc*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-replica-manager/src/ab-testing.ts#
- L746 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L747 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/psyche/tavus-replica-manager/src/cloning.ts#
- L175 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-replica-manager/src/manager.ts#
- L943 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random()-based fabrication produced scores that downstream - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/psyche/tavus-replica-manager/src/types.ts#
- L645 —
ALLOW(HIGH, rulecomment-reference)- Code:
* fabricating withMath.random(). - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L680 —
ALLOW(HIGH, rulecomment-reference)- Code:
* fabricating scores withMath.random(). Typed asunknownso - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/psyche/tavus-tools/src/builtin-tools.ts#
- L191 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =event*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L270 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =${entity.type}_${Date.now()}_${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L325 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:msg*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tools/src/extended-tools.ts#
- L552 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =mtg*${Date.now()}*${Math.random().toString(36).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L564 —
ALLOW(HIGH, ruleid-token-toString)- Code:
passcode: Math.random().toString(36).slice(2, 8).toUpperCase(), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tools/src/security-advanced.ts#
- L585 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createRateLimitRuleId(rule*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1182 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sandbox_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tools/src/security-manager.ts#
- L237 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:audit*${Date.now()}*${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tools/src/tool-executor.ts#
- L134 —
ALLOW(HIGH, ruleid-token-toString)- Code:
exec_${Date.now()}_${Math.random().toString(36).slice(2)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L232 —
ALLOW(HIGH, ruleid-token-toString)- Code:
callId: createToolCallId(call*${Date.now()}*${Math.random().toString(36).slice(2)}), - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tools/src/tool-manager.ts#
- L97 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createToolId(tool*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tts/src/custom-tts-provider.ts#
- L1447 —
ALLOW(HIGH, ruleid-token-toString)- Code:
synth_${Date.now()}_${Math.random().toString(36).substring(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1509 —
ALLOW(HIGH, ruleid-token-toString)- Code:
synth_stream_${Date.now()}_${Math.random().toString(36).substring(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1961 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
selected = activeProviders[Math.floor(Math.random() * activeProviders.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-tts/src/tavus-tts-manager.ts#
- L339 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = createVoiceProfileId(vp*${Date.now()}*${Math.random().toString(36).slice(2)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tts/src/voice-cloning.ts#
- L270 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sampleId =sample*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L435 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const cloneId =clone*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tts/src/voice-quality-analytics.ts#
- L1062 —
ALLOW(HIGH, ruleid-token-toString)- Code:
qs_${Date.now()}_${Math.random().toString(36).substring(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1157 —
ALLOW(HIGH, ruleid-token-toString)- Code:
qm_${Date.now()}_${Math.random().toString(36).substring(2, 8)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-tts/src/voice-switch-manager.ts#
- L619 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const switchId =switch*${now}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-turntaking/src/ab-testing.ts#
- L274 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexptt${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L281 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvartt${Date.now()}_${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-turntaking/src/custom-rules.ts#
- L283 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrule*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L290 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnruleset*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-turntaking/src/hesitation-handling.ts#
- L653 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const phrase = phrases[Math.floor(Math.random() * phrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1044 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return phrases[Math.floor(Math.random() * phrases.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-turntaking/src/index.ts#
- L126 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.streamId =stream*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L695 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionIdStr ??session*${Date.now()}*${Math.random().toString(36).substring(2, 9)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-turntaking/src/learning-optimizer.ts#
- L485 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L486 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L833 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const mode = modes[Math.floor(Math.random() * modes.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/psyche/tavus-turntaking/src/multi-speaker.ts#
- L843 —
ALLOW(HIGH, ruleid-token-toString)- Code:
sessionIdStr ??mssession${Date.now()}_${Math.random().toString(36).substring(2, 9)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L913 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.id ??participant*${Date.now()}*${Math.random().toString(36).substring(2, 9)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tavus-turntaking/src/speaker-adaptation.ts#
- L504 —
ALLOW(HIGH, ruleid-token-toString)- Code:
options.speakerId ??speaker*${now}*${Math.random().toString(36).substring(2, 9)}`` - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/teams-integration/src/bot-sdk.ts#
- L204 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.callId =call-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L713 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnparticipant-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/teams-integration/src/teams-conference-session.ts#
- L648 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnteams-room-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/tool-execution/src/parser.ts#
- L391 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncall*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/viseme-generator/src/timing.ts#
- L275 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const variation = 1 + (Math.random() - 0.5) * 2 * this.config.durationVariation; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/psyche/voice-consistency/src/voice-identity.ts#
- L553 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvoice*${Date.now().toString(36)}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/voice-streaming/src/stream-session.ts#
- L561 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstream-${Date.now()}-${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/psyche/zoom-integration/src/sdk.ts#
- L1036 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnp*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1040 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnm*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/saraswati/battery/src/cell/cell-catalog.ts#
- L821 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
const orderId =PO-${Date.now()}-${Math.floor(Math.random() * 1000)}as ProcurementOrderId; - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/saraswati/battery/src/module/module-engineering.ts#
- L128 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
const moduleId =MOD-${Date.now()}-${Math.floor(Math.random() * 1000)}as ModuleDesignId; - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/saraswati/drones/src/delivery/delivery.ts#
- L813 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
const confidence = model.mAP50 * (0.8 + Math.random() * 0.2); - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/saraswati/robotics/src/sota/swarm.ts#
- L64 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Deterministic LCG to avoid Math.random() in computation - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/saraswati/telecom/src/equipment/equipment.ts#
- L261 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
antennaId:ANT-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L680 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
transmissionId:TX-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L965 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
tankId:TNK-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/saraswati/telecom/src/maintenance/maintenance.ts#
- L753 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
partId:PRT-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/saraswati/telecom/src/site/site.ts#
- L567 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
keyHolderId:KH-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L870 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
stakeholderId:STK-${Date.now()}-${Math.floor(Math.random() * 1000)}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
libs/seshat/sustainability/src/certification.ts#
- L137 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cert*${params.type}*${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai-advanced/src/benchmarks/benchmark-manager.ts#
- L69 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:suite*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L185 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:bench*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as BenchmarkId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai-advanced/src/edge/edge-manager.ts#
- L85 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:edge*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L388 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:deploy*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L542 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sessionId =session*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai-advanced/src/research/research-manager.ts#
- L112 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:proj*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as ResearchProjectId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:exp*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L214 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:run*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L362 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:dataset*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as DatasetId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L444 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:repro*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L537 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:collab*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai-advanced/src/selection/model-selector.ts#
- L50 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:profile*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as ModelProfileId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai/src/advanced/index.ts#
- L20 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai/src/local/inference-engine.ts#
- L1125 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now()}*${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai/src/prompts/testing.ts#
- L25 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntc*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as TestCaseID; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L96 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntr*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as TestRunID; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L268 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnab*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as ABTestID; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai/src/prompts/versioning.ts#
- L81 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpv*${Date.now()}*${Math.random().toString(36).substring(2, 11)}as PromptVersionID; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/ai/src/usage/index.ts#
- L186 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:usage*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L216 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:usage*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/auth/src/service.ts#
- L868 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const suffix = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/cache/src/distributed-lock.ts#
- L273 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${process.pid}-${Date.now()}-${Math.random().toString(36).substring(2, 15)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/cache/src/key-builder.ts#
- L253 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/gpu-dispatcher/src/retry.ts#
- L364 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = (Math.random() * 2 - 1) * jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/shared/http-client/src/retry.ts#
- L55 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterAmount = delay * 0.5 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/shared/migration/src/scripts/lilith-ingestion-to-sophia.ts#
- L591 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Fallback RFC 4122 v4 via getRandomValues. Math.random is NOT a valid - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/shared/migration/src/scripts/yemaya-engine-to-bellona.ts#
- L725 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Fallback RFC 4122 v4 via getRandomValues. Math.random is NOT a valid - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/shared/migration/src/scripts/yemaya-generation-to-isis.ts#
- L771 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Fallback RFC 4122 v4 via getRandomValues. Math.random is NOT a valid - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/shared/rate-limit/src/limiters/exemptions.ts#
- L164 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexempt*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/rate-limit/src/monitoring/alerts.ts#
- L92 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnalert*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/runpod-client/src/client.ts#
- L504 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterFactor = 0.75 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/shared/runpod-client/src/polling.ts#
- L55 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterFactor = 0.75 + Math.random() * 0.5; // 0.75 to 1.25 - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/shared/service-discovery/src/service-discovery.ts#
- L266 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return instances[Math.floor(Math.random() * instances.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/shared/testing/src/fixtures/index.ts#
- L20 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
result += chars.charAt(Math.floor(Math.random() * chars.length)); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L36 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return Math.floor(Math.random() * (max - min + 1)) + min; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L43 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return items[Math.floor(Math.random() * items.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L51 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const r = (Math.random() * 16) | 0; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L61 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime())); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L68 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
return Math.random() < 0.5; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
libs/shared/types/src/legacy.ts#
- L606 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterAmount = calculatedDelay * jitter * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/shared/websocket/src/queue.ts#
- L75 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmsg*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/shared/websocket/src/state.ts#
- L623 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/sophia/evaluation/src/benchmarks/benchmark-runner.ts#
- L114 —
ALLOW(HIGH, ruleid-token-toString)- Code:
bench-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/sophia/evaluation/src/citation/citation-checker.ts#
- L103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
citation-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/sophia/evaluation/src/groundedness/groundedness-scorer.ts#
- L66 —
ALLOW(HIGH, ruleid-token-toString)- Code:
ground-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/sophia/evaluation/src/retrieval/retrieval-evaluator.ts#
- L86 —
ALLOW(HIGH, ruleid-token-toString)- Code:
eval-${Date.now()}-${Math.random().toString(36).slice(2, 9)} - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/sophia/semantic-search/src/search-orchestration/search-orchestration.ts#
- L727 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsession-${Date.now()}-${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/analytics/src/events/index.ts#
- L709 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/analytics/src/providers/internal.ts#
- L215 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/analytics/src/tracking/tracker.ts#
- L346 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/content/src/api/client.ts#
- L1254 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = Math.random() * 0.3 * exponentialDelay; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/tara/monitoring/src/error-tracking/error-tracker.ts#
- L470 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/tara/monitoring/src/performance/performance-monitor.ts#
- L125 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L291 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
- L300 —
ALLOW(HIGH, ruletoken-char-pick)- Code:
id += chars[Math.floor(Math.random() * chars.length)]; - Rationale: Random index into a
charsalphabet to assemble a token; non-secret token codepath (secret keys are handled by csprng helpers).
- Code:
libs/tara/monitoring/src/providers/console.ts#
- L249 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(16).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/monitoring/src/providers/memory.ts#
- L416 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(16).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/monitoring/src/providers/server.ts#
- L357 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(16).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/tara/ui/src/animations/micro.tsx#
- L424 —
ALLOW(HIGH, ruleanimation-visual-jitter)- Code:
const distance = 20 + Math.random() * 10; - Rationale: Animation/particle/effect surface — randomness drives visual variety (rotation, position, duration).
- Code:
libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx#
- L440 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
color: colors[Math.floor(Math.random() * colors.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/kalika/notebooks/src/collaboration.ts#
- L1217 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotebook-session-${String(clientId)}-${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kalika/notebooks/src/sharing.ts#
- L153 —
ALLOW(HIGH, ruleid-token-toString)- Code:
nextLinkToken: () =>unb*${nextGeneratedSharingId()}*${Math.random().toString(36).slice(2, 14)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/kalika/quantum-field-theory/src/large-expression.ts#
- L1102 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/agents-social-media/src/social-media-manager.ts#
- L957 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random()so the id is collision-free without being - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1952 —
ALLOW(HIGH, rulecomment-reference)- Code:
* fallback platformPostId. Replaces the priorMath.random()`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/ai-next-gen/src/investigations.ts#
- L2364 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/ai-next-gen/src/osint.ts#
- L195 —
ALLOW(HIGH, rulecomment-reference)- Code:
* generatedprobability: Math.random() * 0.5and a fixed list - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L314 —
ALLOW(HIGH, rulecomment-reference)- Code:
* The previousdetectBotsreturnedprobability: Math.random() *` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/analytics/src/types.ts#
- L1087 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const randomPart = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1096 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const randomPart = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/archive/src/archive.ts#
- L478 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/archive/src/collections.ts#
- L462 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/archive/src/on-this-day.ts#
- L400 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/archive/src/story-tracking.ts#
- L447 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/article-generation/src/article-generator.ts#
- L458 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/audio-production/src/clients/ghana-nlp.ts#
- L684 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/veritas/automated-content/src/generators/fuel-generator.ts#
- L368 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 1.5; // -0.75 to +0.75 GHS - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/veritas/automated-content/src/generators/loadshed-generator.ts#
- L502 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const selectedZones = ECG_ZONES.sort(() => Math.random() - 0.5).slice(0, count); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L556 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
return POWER_TIPS.sort(() => Math.random() - 0.5).slice(0, count); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L568 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return reasons[Math.floor(Math.random() * reasons.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/automated-content/src/generators/market-generator.ts#
- L388 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 4; // -2% to +2% - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L420 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 10; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L442 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
change: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L443 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
percentChange: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L450 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
change: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L451 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
percentChange: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L458 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
change: (Math.random() - 0.5) * 0.3, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L459 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
percentChange: (Math.random() - 0.5) * 2, - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/veritas/automated-content/src/generators/sports-data-fetcher.ts#
- L27 —
ALLOW(HIGH, rulecomment-reference)- Code:
* positions, and top-scorer tables — the previousMath.random()`` - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/automated-content/src/generators/sports-generator.ts#
- L77 —
ALLOW(HIGH, rulecomment-reference)- Code:
* tables — the previousMath.random()synthesis was removed in - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/automated-content/src/generators/traffic-generator.ts#
- L359 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const type = types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L360 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const route = ACCRA_ROUTES[Math.floor(Math.random() * ACCRA_ROUTES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/automated-content/src/generators/weather-data-fetcher.ts#
- L26 —
ALLOW(HIGH, rulecomment-reference)- Code:
* stack usedMath.random()for temperatures, humidity, wind - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/automated-content/src/generators/weather-generator.ts#
- L74 —
ALLOW(HIGH, rulecomment-reference)- Code:
* synthesis stack usedMath.random()for temperatures, - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/automated-content/src/types.ts#
- L239 —
ALLOW(HIGH, rulecomment-reference)- Code:
* every previous "default" reading wasMath.random()driven. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/veritas/b2b-sdk/src/resources/base.ts#
- L212 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return delay + Math.random() * 500; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/veritas/cms/src/ai-assist.ts#
- L833 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/cms/src/breaking.ts#
- L469 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/cms/src/content.ts#
- L623 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/cms/src/workflow.ts#
- L636 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/comments/src/comments.ts#
- L717 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncmt*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/comments/src/community.ts#
- L410 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:report*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L509 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:expert*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/comments/src/dashboard.ts#
- L468 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:appeal*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/comments/src/moderation.ts#
- L608 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:queue*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/community/src/citizen-journalism.ts#
- L1071 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/community/src/gamification.ts#
- L924 —
ALLOW(HIGH, rulecomment-reference)- Code:
* The output is deterministic (noMath.random) so quiz seeds and - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L1628 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/community/src/securedrop.ts#
- L159 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const adjective = ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L160 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const noun = NOUNS[Math.floor(Math.random() * NOUNS.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/database/src/utils.ts#
- L337 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const suffix = Math.random().toString(36).substring(2, 8); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/emergency/src/alerts.ts#
- L633 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/emergency/src/distribution.ts#
- L683 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/emergency/src/election.ts#
- L721 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/fact-checking/src/ai-assist/verdict-generator.ts#
- L447 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ev*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L536 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ev*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L547 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:ev*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/ghana-nlp/src/config.ts#
- L293 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterFactor = 0.75 + Math.random() * 0.5; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/veritas/headline-service/src/testing/ab-testing.ts#
- L290 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntest*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L355 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return variants[Math.floor(Math.random() * variants.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/knowledge-graph/src/temporal/tracker.ts#
- L623 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevent*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/live-stream/src/archive/breaking-news-archive.ts#
- L905 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnarc*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L909 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnupd*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/live-stream/src/interactive/viewer-qa.ts#
- L1183 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnq*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1187 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnr*${Date.now()}*${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/live-stream/src/scheduler/stream-scheduler.ts#
- L519 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:breaking*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/live-stream/src/video/live-video-generator.ts#
- L488 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return greetings[Math.floor(Math.random() * greetings.length)] ?? 'Hello and welcome.'; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L500 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return signOffs[Math.floor(Math.random() * signOffs.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/newsletter/src/email-service.ts#
- L196 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:sandbox*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L344 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:sandbox*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L469 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:sandbox*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L559 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:sandbox*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L679 —
ALLOW(HIGH, ruleid-token-toString)- Code:
messageId:sandbox*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/newsletter/src/newsletters.ts#
- L1083 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: Math.random() * 0.3 + 0.7, - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
libs/veritas/notifications/src/types.ts#
- L1310 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/payments/src/types.ts#
- L1231 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 8).toUpperCase(); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/platforms/src/enterprise.ts#
- L279 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L747 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const deploymentId =deploy*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/realtime-data/src/financial.ts#
- L39 —
ALLOW(HIGH, rulecomment-reference)- Code:
*Math.random()value. - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L979 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1043 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 0.1; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1081 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * info.price * 0.02; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L1107 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/realtime-data/src/utilities.ts#
- L740 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const severity = severities[Math.floor(Math.random() * severities.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L767 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const change = (Math.random() - 0.5) * 0.5; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L807 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const airline = airlines[Math.floor(Math.random() * airlines.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L808 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const dest = destinations[Math.floor(Math.random() * destinations.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L822 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const status = i < 3 ? statuses[Math.floor(Math.random() * 3)] : 'scheduled'; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L927 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/realtime-data/src/weather.ts#
- L1029 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/recommendations/src/realtime.ts#
- L318 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/regional/src/anchors.ts#
- L156 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const name = options.name || nameList[Math.floor(Math.random() * nameList.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/research-assistant/src/briefing-generator.ts#
- L199 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbriefing-${Date.now()}-${Math.random().toString(36).substring(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/seo/src/web-stories.ts#
- L561 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:page*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/seo/src/web-vitals.ts#
- L554 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).substring(7)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/social-automation/src/adapters/base.ts#
- L141 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${this.platform}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/veritas/story-clustering/src/quality/assessment.ts#
- L65 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
.sort(() => Math.random() - 0.5) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/veritas/video-production/src/avatars/ewe-anchors.ts#
- L442 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return greetings[Math.floor(Math.random() * greetings.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L450 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return signOffs[Math.floor(Math.random() * signOffs.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L543 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = intros[Math.floor(Math.random() * intros.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L562 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = outros[Math.floor(Math.random() * outros.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/video-production/src/avatars/ga-anchors.ts#
- L440 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return greetings[Math.floor(Math.random() * greetings.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L448 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return signOffs[Math.floor(Math.random() * signOffs.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L541 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = intros[Math.floor(Math.random() * intros.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L560 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = outros[Math.floor(Math.random() * outros.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/video-production/src/avatars/presets.ts#
- L337 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const template = intros[Math.floor(Math.random() * intros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L354 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return outros[Math.floor(Math.random() * outros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/video-production/src/avatars/sync.ts#
- L286 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return featured[Math.floor(Math.random() * featured.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L290 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/video-production/src/avatars/twi-anchors.ts#
- L509 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return timeIntros[Math.floor(Math.random() * timeIntros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L527 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return contextOutros[Math.floor(Math.random() * contextOutros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L542 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return breakingIntros[Math.floor(Math.random() * breakingIntros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/veritas/video-production/src/sync/voice-avatar-sync.ts#
- L476 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvas*${Date.now()}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/agents/src/constraints/index.ts#
- L1976 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
let best = population[Math.floor(Math.random() * population.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1979 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const competitor = population[Math.floor(Math.random() * population.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2041 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const mutation = (Math.random() - 0.5) * 2 * sigma; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/yemaya/agents/src/npc-ai/advanced-npc-ai.ts#
- L2827 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const supplyVariation = 1 + (Math.random() - 0.5) * 0.2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2828 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const demandVariation = 1 + (Math.random() - 0.5) * 0.2; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/yemaya/agents/src/optimization/performance-optimizer.ts#
- L1763 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shuffled = [...examples].sort(() => Math.random() - 0.5); - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/yemaya/agents/src/optimization/schedule-optimizer.ts#
- L1958 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shiftHours = (Math.random() - 0.5) * 48; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2116 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shiftHours = (Math.random() - 0.5) * 24; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L2127 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
availableResources[Math.floor(Math.random() * availableResources.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2145 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedItem = movableItems[Math.floor(Math.random() * movableItems.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2152 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const shiftHours = (Math.random() - 0.5) * 12; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
libs/yemaya/agents/src/orchestration/competitive-differentiation-advisor.ts#
- L2525 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return options[Math.floor(Math.random() * options.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/orchestration/consensus-decision.ts#
- L1506 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const winner = tied[Math.floor(Math.random() * tied.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/orchestration/decision-conflict.ts#
- L1332 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedOption = options[Math.floor(Math.random() * options.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/orchestration/decision-impact.ts#
- L1652 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u1 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
- L1653 —
ALLOW(HIGH, rulegaussian-sampling)- Code:
const u2 = Math.random(); - Rationale: Math.random feeds a Box-Muller or related transform; uniform-to-Gaussian conversion needs a uniform RNG.
- Code:
libs/yemaya/agents/src/orchestration/delegation.ts#
- L349 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)] ?? null; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/orchestration/retry-strategy-selector.ts#
- L572 —
ALLOW(HIGH, ruletimer-jitter)- Code:
return baseDelay / 2 + (Math.random() * baseDelay) / 2; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L577 —
ALLOW(HIGH, ruletimer-jitter)- Code:
Math.random() * baseDelay * 3 * jitterFactor + baseDelay * (1 - jitterFactor) - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L642 —
ALLOW(HIGH, ruletimer-jitter)- Code:
baseDelay = baseDelay - jitterRange / 2 + Math.random() * jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/yemaya/agents/src/orchestration/workflow-recovery.ts#
- L304 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = baseDelay * this.config.jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/yemaya/agents/src/pipelines/game-pipeline.ts#
- L7828 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = boundedDelay * jitterFactor * (Math.random() * 2 - 1); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L14587 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * 0.1 * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/yemaya/agents/src/procedural-animation/procedural-animation.ts#
- L2460 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
return (base + (Math.random() * 2 - 1) * variance) * emotionMod * 1000; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L2690 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
if (Math.random() > this.config.microExpressionChance) return; - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L2692 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const randomIndex = Math.floor(Math.random() * this.microExpressions.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L2871 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
this.blinkState.blinkDuration = 0.1 + Math.random() * 0.1; // 100-200ms - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/yemaya/agents/src/quality-assurance/visual-anomaly-detector.ts#
- L1341 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
? available[Math.floor(Math.random() * available.length)] - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1342 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
: enabledMethods[Math.floor(Math.random() * enabledMethods.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/registry/index.ts#
- L212 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/testing/index.d.ts#
- L929 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - IssueDetector for real issue detection (replaces Math.random()) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/yemaya/agents/src/testing/index.ts#
- L1885 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomKey = moveKeys[Math.floor(Math.random() * moveKeys.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1940 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const move = exploreMoves[Math.floor(Math.random() * exploreMoves.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1972 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return combatActions[Math.floor(Math.random() * combatActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1995 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return puzzleActions[Math.floor(Math.random() * puzzleActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2010 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return dialogueActions[Math.floor(Math.random() * dialogueActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2034 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return stressActions[Math.floor(Math.random() * stressActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2048 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const actionType = actionTypes[Math.floor(Math.random() * actionTypes.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2063 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
key: keys[Math.floor(Math.random() * keys.length)]!, - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2076 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return escapeActions[Math.floor(Math.random() * escapeActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L2558 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - IssueDetector for real issue detection (replaces Math.random()) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L2675 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Initialize issue detector with real detection (not Math.random()) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L2968 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Get real issues (replaces Math.random() synthetic issues) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L5809 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return escapeActions[Math.floor(Math.random() * escapeActions.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L5814 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const randomKey = moveKeys[Math.floor(Math.random() * moveKeys.length)]!; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/agents/src/testing/test-execution-infrastructure.d.ts#
- L9 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - Real issue detection (replaces synthetic Math.random() issues) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L626 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Detects real issues from game testing (replaces Math.random() fake issues) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L774 —
ALLOW(HIGH, rulecomment-reference)- Code:
* This replaces the synthetic Math.random()-based testing with real test execution - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/yemaya/agents/src/testing/test-execution-infrastructure.ts#
- L9 —
ALLOW(HIGH, rulecomment-reference)- Code:
* - Real issue detection (replaces synthetic Math.random() issues) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L2102 —
ALLOW(HIGH, rulecomment-reference)- Code:
* Detects real issues from game testing (replaces Math.random() fake issues) - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L2536 —
ALLOW(HIGH, rulecomment-reference)- Code:
* This replaces the synthetic Math.random()-based testing with real test execution - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
libs/yemaya/assets/src/indexing/metadata-indexing.ts#
- L975 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId =bulk*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/assets/src/search/index.ts#
- L14 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/assets/src/versioning/lfs-transfer-acceleration.ts#
- L569 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = request.id ||transfer*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L583 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = request.id ||transfer*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L660 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const batchId = batch.id ||batch*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/auth/src/services/password.ts#
- L273 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const char = lowercase[Math.floor(Math.random() * lowercase.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L279 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const char = uppercase[Math.floor(Math.random() * uppercase.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L285 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const char = numbers[Math.floor(Math.random() * numbers.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L291 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const char = symbols[Math.floor(Math.random() * symbols.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/budget-management/src/compute-budget.ts#
- L129 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/budget-management/src/optimization.ts#
- L175 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:scenario*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/canon-enforcement/src/canon-manager.ts#
- L35 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:canon*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L140 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:style*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L182 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:viol*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L277 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:charviol${Date.now()}_${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts#
- L1275 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const synonym = synonyms[Math.floor(Math.random() * synonyms.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1287 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const token = extraTokens[Math.floor(Math.random() * extraTokens.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/comfyui-integration/src/provider-manager/provider-manager.ts#
- L716 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterValue = (Math.random() * 2 - 1) * jitterRange; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L2450 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const newProviderJobId =${provider.type}retry${Date.now()}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2533 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const newProviderJobId =${alternative.type}failover${Date.now()}_${Math.random().toString(36).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/core/src/advanced/security-performance-sota.ts#
- L31 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/core/src/advanced/testing-sota.ts#
- L26 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1334 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const mutation = mutations[Math.floor(Math.random() * mutations.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1400 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const type = types[Math.floor(Math.random() * types.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1437 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return payloads[Math.floor(Math.random() * payloads.length)] ?? ''; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1442 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return payloads[Math.floor(Math.random() * payloads.length)] ?? ''; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
libs/yemaya/core/src/cost-management.ts#
- L710 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id =budget*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as BudgetId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L891 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1011 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cost*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as CostEntryId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1441 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:report*${Date.now()}*${Math.random().toString(36).slice(2, 9)}as CostReportId, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/core/src/index.ts#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
:${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/core/src/monitoring.ts#
- L593 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}as CorrelationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L931 —
ALLOW(HIGH, ruleid-token-toString)- Code: ``pipeline_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
as PipelineExecutionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code: ``pipeline_${Date.now()}_${Math.random().toString(36).slice(2, 9)}
- L1737 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).slice(2, 11)}as CorrelationId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/enterprise/src/analytics/analytics-dashboard.ts#
- L460 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:dash*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L478 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:panel*${Date.now()}*${Math.random().toString(36).slice(2, 6)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L551 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L644 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/human-override/src/override-system.ts#
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:override*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:cp*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L138 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:esc*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L203 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:recovery*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/orchestration/src/execution/retry-manager.ts#
- L91 —
ALLOW(HIGH, rulecomment-reference)- Code:
// Math.random() is intentionally used here for jitter — the goal is to - Rationale: Hit appears inside a JSDoc/inline comment, not executable code.
- Code:
- L97 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = Math.random() * capped; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/yemaya/organizations/src/services/accessibility-preferences-service.ts#
- L355 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/activity-tracking-service.ts#
- L514 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/ai-preferences-service.ts#
- L366 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/analytics-service.ts#
- L270 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L715 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:seg*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L826 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:alert*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L924 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:trigger*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L992 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:export*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/anomaly-detection-service.ts#
- L280 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/billing-service.ts#
- L475 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sub*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L863 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pm*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/branding-service.ts#
- L289 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:branding*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L831 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/bulk-invitation-service.ts#
- L289 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbjob*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/checklist-service.ts#
- L607 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchk*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/compliance-reporting-service.ts#
- L217 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/data-export-preferences-service.ts#
- L258 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/export-service.ts#
- L1023 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexp*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/invitation-tracking-service.ts#
- L178 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevt*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/keyboard-shortcuts-service.ts#
- L713 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/language-preferences-service.ts#
- L830 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlang*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/notification-preferences-service.ts#
- L683 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnnotif*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L690 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnunsub*${Date.now()}*${Math.random().toString(36).slice(2, 16)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/onboarding-wizard-service.ts#
- L120 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwiz*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L127 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwevt*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/privacy-settings-service.ts#
- L192 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/progress-tracking-service.ts#
- L184 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/project-settings-service.ts#
- L494 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/sample-project-service.ts#
- L954 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnproj*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/settings-service.ts#
- L252 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.generateId = options?.generateId ?? (() =>setting-change-${Date.now()}-${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/sso-service.ts#
- L375 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:sso*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L624 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const requestId =req*${Date.now()}*${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1307 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:session*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1445 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:evt*${Date.now()}*${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/theme-preferences-service.ts#
- L532 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntheme*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/organizations/src/services/welcome-tour-service.ts#
- L626 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntour*${Date.now()}*${Math.random().toString(36).slice(2, 11)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/production-verification/src/verification.ts#
- L34 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:check*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:bench*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L165 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:coherence*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L245 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:signoff*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/rbac/src/custom-roles.ts#
- L304 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:custom-role-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/rbac/src/role-audit.ts#
- L203 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.generateId = options?.generateId ?? (() =>audit-${Date.now()}-${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/rbac/src/role-templates.ts#
- L528 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.generateId = options?.generateId ?? (() =>template-${Date.now()}-${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/rbac/src/temporary-grants.ts#
- L229 —
ALLOW(HIGH, ruleid-token-toString)- Code:
this.generateId = options?.generateId ?? (() =>temp-grant-${Date.now()}-${Math.random().toString(36).substr(2, 9)}); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/sdk/src/advanced/sdk-sota.ts#
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1058 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitter = delay * policy.jitterFactor * Math.random(); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
libs/yemaya/self-improvement/src/self-improvement.ts#
- L36 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:outcome*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L205 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:pattern*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L232 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:lesson*${Date.now()}*${Math.random().toString(36).slice(2, 8)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/AIImageGeneration/useAIImageGeneration.ts#
- L111 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnjob*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/AudioSync/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsync*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as SyncPointId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsyncg*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as SyncGroupId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnatrack*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as AudioTrackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/AudioWaveform/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnwaveform*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as WaveformId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmarker*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as MarkerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnregion*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as RegionId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/AutoFraming/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnframe*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as FrameId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsubj*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as SubjectId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CanvasItems/LayerPanel.tsx#
- L460 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlayer*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CanvasItems/UndoRedo.tsx#
- L215 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnaction*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CanvasItems/types.ts#
- L537 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnitem*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CharacterDesigner/types.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchar-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L20 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlayer-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L24 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpose-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L28 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnannot-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L334 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L948 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpanel-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L955 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsheet-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1448 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexpr-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1455 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnexprsheet-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2199 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncostume-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2206 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnitem-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2213 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncsheet-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2965 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnchargen-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L2972 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngenimg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3445 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstyleref-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3452 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanchor-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3459 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnprofile-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3466 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnanalysis-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3473 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncomparison-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3480 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndrift-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3487 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnissue-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4103 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnworkflow-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returniter-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4117 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvariant-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4124 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncomp-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4131 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrefine-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4234 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
seed: options?.seed ?? Math.floor(Math.random() * 2147483647), - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L4848 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-input-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4855 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-group-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4862 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-gen-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4869 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-result-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4876 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-lib-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4883 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-comp-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4890 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref-hist-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CharacterTimeline/types.ts#
- L316 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnevent-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ColorPalette/colorMatching.ts#
- L605 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const idx = Math.floor(Math.random() * colors.length); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/yemaya/ui/src/components/ColorPalette/paletteCollaboration.ts#
- L303 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:change-${Date.now()}-${Math.random().toString(36).slice(2)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ColorPalette/types.ts#
- L530 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpal*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L537 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnsw*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ColorPalette/usePaletteGeneration.ts#
- L248 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const h = Math.floor(Math.random() * 360); - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L249 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const s = Math.floor(Math.random() * 40) + 50; // 50-90 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
- L250 —
ALLOW(MEDIUM, ruleprocedural-generation-path)- Code:
const l = Math.floor(Math.random() * 30) + 40; // 40-70 - Rationale: File path is in a procedural-content-generation surface (svc-metaverse, star-map, virtual-rooms FX, character/scene generators); randomness drives content variety.
- Code:
libs/yemaya/ui/src/components/ColorScriptTool/types.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnscene*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncolor*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncscript*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbeat*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrans*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L51 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnspal*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/CustomTraitManager/types.ts#
- L87 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncustom-trait-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L94 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlibrary-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/DialogueExampleEditor/types.ts#
- L176 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndialogue-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/EnvironmentConcepting/types.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnenv-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnvp-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpgs-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngl-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1027 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlayer-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1034 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returngroup-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1955 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmood-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1962 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnlight-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3053 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnkeyframe-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L3057 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntimeline-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4264 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstyle-ref-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L4268 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncheck-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L5062 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntransfer-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L5066 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntransfer-preset-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L5937 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncallout-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L5944 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncallout-group-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L5951 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmarker-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L6550 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:layer-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L6569 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:preset-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ImageOrganization/DragAndDrop.tsx#
- L151 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndrop*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ImageOrganization/types.ts#
- L385 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returncol*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L392 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnimg*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ImageSequenceExport/types.ts#
- L482 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ImageUpload/types.ts#
- L110 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnimg-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/MultiTrack/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmtrack*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as MultiTrackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnaclip*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as AudioClipId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntgroup*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as TrackGroupId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L33 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnbus*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as BusId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/PanelGrid/types.ts#
- L18 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpanel*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as PanelId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L22 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntemplate*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as TemplateId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/PropDesigner/types.ts#
- L16 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnview-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntemplate-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L30 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnguide-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L37 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returndim-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1304 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnscale-ref-${Date.now()}-${Math.random().toString(36).slice(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1803 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:layer-${Date.now()}-${Math.random().toString(36).slice(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ReferenceOverlay/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnref*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as ReferenceId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/SchedulingEngine/types.ts#
- L642 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const random = Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/ScratchRecording/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrec*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as RecordingId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrack*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as TrackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L281 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:seg*${Date.now()}*${Math.random().toString(36).substring(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/StructureBuilder/StructureBuilder.tsx#
- L67 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/StyleTransfer/types.ts#
- L15 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnstyle*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as StyleId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L21 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnpreset*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as StylePresetId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/TimelineEditor/types.ts#
- L19 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnclip*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as ClipId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L23 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrack*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as TrackId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L27 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnmarker*${Date.now()}*${Math.random().toString(36).substring(2, 9)}as MarkerId; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/TimingEditor/types.ts#
- L564 —
ALLOW(HIGH, ruleid-token-toString)- Code:
id:group-${Date.now()}-${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/Toast.tsx#
- L144 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const id = data.id || Math.random().toString(36).substring(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/TraitSelector/types.ts#
- L80 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntrait-${Date.now()}-${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/ui/src/components/XMLExport/types.ts#
- L533 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return${prefix}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
libs/yemaya/video-generation/src/provider-router/provider-router.ts#
- L746 —
ALLOW(HIGH, ruletimer-jitter)- Code:
const jitterValue = Math.random() * exponential; - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
- L1131 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const providerJobId =pjob*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L1324 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const providerJobId =pjob*${Date.now()}*${Math.random().toString(36).slice(2, 8)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
minerva/minerva/multimedia/diagram_runtime.py#
- L170 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const generated = "diagram-" + Math.random().toString(36).slice(2, 10); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
scripts/lilith/comprehensive-todos-implementation.ts#
- L687 —
REPLACE(HIGH, rulefake-confidence-score)- Code:
confidence: Math.random() * 0.3 + 0.7, // 70-100% confidence - Rationale:
confidence/score/accuracy/etc. assigned from Math.random; must come from real model output, not fabricated.
- Code:
- L1143 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
responseTime: Math.floor(Math.random() * 100) + 50 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/master-automation-controller.ts#
- L31 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
executionTime: Math.random() * 5000 + 1000, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/performance/run-load-profile.ts#
- L296 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
latencies.push(simulatedLatency * (0.8 + Math.random() * 0.4)); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/quality-gates-pipeline.ts#
- L841 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
Math.random() * Math.random(); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L854 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const testArray = new Array(100000).fill(0).map(() => Math.random()); - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/seed-databases.ts#
- L138 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 90 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L141 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
preferred_locale: locales[Math.floor(Math.random() * locales.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L143 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
preferred_persona: personas[Math.floor(Math.random() * personas.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L145 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
screen_reader: Math.random() > 0.9, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L146 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
high_contrast: Math.random() > 0.8, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L147 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
reduced_motion: Math.random() > 0.85 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L150 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
push_enabled: Math.random() > 0.3, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L151 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
email_enabled: Math.random() > 0.2, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L159 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
tier: Math.random() > 0.7 ? 'premium' : 'free', - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L160 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
expires_at: Math.random() > 0.7 ? new Date(Date.now() + 365 * 24 * 60 * 60 * 1000).toISOString() : null - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L163 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
total_sessions: Math.floor(Math.random() * 100), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L164 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
total_messages: Math.floor(Math.random() * 500), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L165 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
total_audio_minutes: Math.floor(Math.random() * 1000), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L166 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
last_active: new Date(Date.now() - Math.random() * 7 * 24 * 60 * 60 * 1000).toISOString() - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L184 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
tradition: traditions[Math.floor(Math.random() * traditions.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L185 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
content_type: contentTypes[Math.floor(Math.random() * contentTypes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L186 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
language: languages[Math.floor(Math.random() * languages.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L187 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
status: Math.random() > 0.1 ? 'published' : 'draft', - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L188 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 180 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L189 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
updated_at: new Date(Date.now() - Math.random() * 30 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L191 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
duration_minutes: Math.floor(Math.random() * 60) + 5, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L192 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
difficulty_level: Math.floor(Math.random() * 5) + 1, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L193 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
tags: ['mindfulness', 'wisdom', 'philosophy'].slice(0, Math.floor(Math.random() * 3) + 1), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L194 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
author:Author ${Math.floor(Math.random() * 10) + 1}, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L196 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
transcript_available: Math.random() > 0.3, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L197 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
audio_available: Math.random() > 0.2 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L199 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
content_text:This is sample content ${i} for the ${traditions[Math.floor(Math.random() * traditions.length)]} tradition. It contains wisdom and guidance fo...` - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L200 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
embedding_vector: Array.from({ length: 384 }, () => Math.random() - 0.5) - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L212 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const userId = userIds[Math.floor(Math.random() * userIds.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L213 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const messageCount = Math.floor(Math.random() * 20) + 1; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L219 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 60 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L220 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
updated_at: new Date(Date.now() - Math.random() * 7 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L222 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
persona: ['zen', 'stoic', 'sufi'][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L225 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
language: ['en', 'es', 'zh-CN', 'ar', 'fr'][Math.floor(Math.random() * 5)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L226 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
context_length: Math.floor(Math.random() * 4000) + 1000, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L227 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
total_tokens: Math.floor(Math.random() * 10000) + 2000, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L228 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
audio_enabled: Math.random() > 0.4, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L229 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
citations_count: Math.floor(Math.random() * 10) - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L245 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
content_id: contentIds[Math.floor(Math.random() * contentIds.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L246 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
file_path:/media/audio/${i.toString().padStart(3, '0')}.${formats[Math.floor(Math.random()- formats.length)]}
,
- formats.length)]}
- Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L247 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
file_size_bytes: Math.floor(Math.random() * 50000000) + 1000000, // 1-50MB - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L248 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
duration_seconds: Math.floor(Math.random() * 3600) + 60, // 1min - 1hour - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L249 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
format: formats[Math.floor(Math.random() * formats.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L250 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
quality: ['standard', 'high', 'premium'][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L251 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 90 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L253 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
bitrate: Math.floor(Math.random() * 320) + 64, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L254 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
sample_rate: [22050, 44100, 48000][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L255 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
channels: Math.random() > 0.5 ? 'stereo' : 'mono', - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L256 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
codec: ['aac', 'mp3', 'opus'][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L258 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
waveform_generated: Math.random() > 0.2, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L259 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
transcript_extracted: Math.random() > 0.3 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L280 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
type: entityTypes[Math.floor(Math.random() * entityTypes.length)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L281 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
tradition: ['zen', 'stoic', 'sufi', 'general'][Math.floor(Math.random() * 4)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L284 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
importance_score: Math.random(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L285 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
frequency_mentioned: Math.floor(Math.random() * 100), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L286 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
verified: Math.random() > 0.2 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L288 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 365 * 24 * 60 * 60 * 1000).toISOString() - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L294 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const fromEntity = Math.floor(Math.random() * 200) + 1; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L295 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
const toEntity = Math.floor(Math.random() * 200) + 1; - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L302 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
relationship_type: ['teaches', 'influences', 'practices', 'references'][Math.floor(Math.random() * 4)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L303 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
strength: Math.random(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L304 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
verified: Math.random() > 0.3, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L305 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
created_at: new Date(Date.now() - Math.random() * 180 * 24 * 60 * 60 * 1000).toISOString() - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L315 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
tradition: ['zen', 'stoic', 'sufi'][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L317 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
semantic_vector: Array.from({ length: 384 }, () => Math.random() - 0.5), - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
- L319 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
{ length: Math.floor(Math.random() * 5) + 1 }, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L320 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
() =>content_${(Math.floor(Math.random() * 100) + 1).toString().padStart(3, '0')}`` - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L323 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
complexity_level: Math.floor(Math.random() * 5) + 1, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L324 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
practical_applications: Math.floor(Math.random() * 10), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L325 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
scholarly_references: Math.floor(Math.random() * 20) - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L575 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
const userId =user_${Math.floor(Math.random() * 50 + 1).toString().padStart(3, '0')}; - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L580 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
persona: ['zen', 'stoic', 'sufi'][Math.floor(Math.random() * 3)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L582 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
audio_enabled: Math.random() > 0.3, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L583 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
language: ['en', 'es', 'zh-CN', 'ar', 'fr'][Math.floor(Math.random() * 5)] - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L598 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
messages: Math.floor(Math.random() * 20) + 1, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L599 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
tokens: Math.floor(Math.random() * 4000) + 1000, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L787 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
timestamp: new Date(Date.now() - Math.random() * 30 * 24 * 60 * 60 * 1000).toISOString(), - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L788 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
service: ['auth', 'content', 'conversation', 'media'][Math.floor(Math.random() * 4)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L789 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
action: ['create', 'read', 'update', 'delete'][Math.floor(Math.random() * 4)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L790 —
ALLOW(HIGH, ruleid-suffix-template)- Code:
user_id:user_${Math.floor(Math.random() * 50 + 1).toString().padStart(3, '0')}, - Rationale: Random integer suffix in a template-string ID composition (e.g., ORD-${Date.now()}-${Math.floor(Math.random()*10000)}).
- Code:
- L791 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
resource_type: ['user', 'content', 'conversation', 'media'][Math.floor(Math.random() * 4)], - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L792 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
success: Math.random() > 0.1, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
- L793 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
ip_address:192.168.1.${Math.floor(Math.random() * 254) + 1}, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/service-orchestrator.ts#
- L76 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
responseTime: Math.floor(Math.random() * 100) + 50 - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
scripts/lilith/test-result-reporter.ts#
- L88 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnrun-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
scripts/lilith/todos-compliance-enforcer.ts#
- L431 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return 'user_' + Math.random().toString(36).substr(2, 9); - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
scripts/lilith/todos-final-implementation.ts#
- L945 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
executionTime: Math.random() * 5000 + 1000, - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
serwaa/services/admin-dashboard/src/app/dashboard/knowledge/sources/new/page.tsx#
- L44 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const sourceId =src*${Date.now()}*${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
serwaa/services/admin-dashboard/src/app/dashboard/knowledge/upload/page.tsx#
- L65 —
ALLOW(HIGH, ruleid-token-toString)- Code:
return { documentId:doc*${Date.now()}*${Math.random().toString(36).substr(2, 9)}}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
- L117 —
ALLOW(HIGH, ruleid-token-toString)- Code:
fileId:file*${Date.now()}*${Math.random().toString(36).substr(2, 9)}, - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
tests/integration/fixtures/test-event-bus.ts#
- L216 —
ALLOW(MEDIUM, ruleseed-or-fixture-script)- Code:
if (failureRate > 0 && Math.random() < failureRate) { - Rationale: Seed/fixture/script context — Math.random is acceptable for spreading seed data; not part of production runtime.
- Code:
yaa/packages/ai/agents/agents/content-strategist/db.ts#
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const experimentId = input.experimentId?.trim().length ? input.experimentId.trim() :ab_${Math.random().toString(16).slice(2, 10)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/ai/original-content/src/pitch-generation.ts#
- L334 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const selectedAngle = angles[0] || angles[Math.floor(Math.random() * angles.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
yaa/packages/ingestion/source-discovery/src/wire-service-automation.ts#
- L1378 —
ALLOW(HIGH, ruleshuffle-sort-key)- Code:
const jitter = (Math.random() - 0.5) * 2 * config.jitterSeconds; - Rationale:
Math.random() - 0.5is a Fisher-Yates-style sort key for shuffle; non-determinism is the feature.
- Code:
yaa/packages/nlp/ghana-nlp/src/ner-client.ts#
- L178 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
yaa/packages/nlp/ghana-nlp/src/stt-client.ts#
- L130 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
yaa/packages/nlp/ghana-nlp/src/translation-client.ts#
- L208 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
yaa/packages/nlp/ghana-nlp/src/tts-client.ts#
- L230 —
ALLOW(HIGH, ruletimer-jitter)- Code:
delay = delay * (0.5 + Math.random() * 0.5); - Rationale: Timer/retry jitter — adding randomness to backoff or scheduling so calls don't synchronize.
- Code:
yaa/packages/nlp/ghana-nlp/src/twi-audio-queue.ts#
- L300 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returntwi-audio-${Date.now()}-${Math.random().toString(36).substr(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/social/analytics-dashboard/src/mock-datasource.ts#
- L163 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const postsToday = Math.floor(Math.random() * 3) + 1; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L166 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const contentType = contentTypes[Math.floor(Math.random() * contentTypes.length)]!; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L167 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const impressions = Math.round(account.followers * (0.2 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L168 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const reach = Math.round(impressions * (0.5 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L169 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const engagementRate = account.avgEngagementRate * (0.5 + Math.random()); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L171 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const likes = Math.round(engagements * (0.5 + Math.random() * 0.3)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L172 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const comments = Math.round(engagements * (0.1 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L173 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const shares = Math.round(engagements * (0.05 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L174 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const saves = Math.round(engagements * (0.02 + Math.random() * 0.05)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L175 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
const clicks = Math.round(engagements * (0.1 + Math.random() * 0.1)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L185 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
9 + Math.floor(Math.random() * 12), - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L186 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
Math.floor(Math.random() * 60) - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L227 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(account.followers * (0.2 + Math.random() * 0.2)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L230 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(account.followers * (0.1 + Math.random() * 0.15)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L233 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(account.followers * account.avgEngagementRate * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L236 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(account.followers * account.avgEngagementRate * 0.6 * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L239 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(account.followers * account.avgEngagementRate * 0.2 * (0.8 + Math.random() * 0.4)); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L242 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = account.followers + Math.round(Math.random() * 50 - 10); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L245 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(Math.random() * 40 - 5); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L248 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
value = Math.round(Math.random() * 100); - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
- L351 —
REPLACE(HIGH, ruleanalytics-fake-metric)- Code:
return headlines[Math.floor(Math.random() * headlines.length)]!; - Rationale: Analytics/BI/compliance/revenue route synthesizes a metric value via Math.random(); these must be computed from the corresponding data source (Postgres/Redis/Kafka), not fabricated.
- Code:
yaa/packages/video/avatar-profiles/src/twi-anchors.ts#
- L1175 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return timeIntros[Math.floor(Math.random() * timeIntros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1195 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return contextOutros[Math.floor(Math.random() * contextOutros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1211 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return breakingIntros[Math.floor(Math.random() * breakingIntros.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1274 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return featured[Math.floor(Math.random() * featured.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
- L1277 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
return candidates[Math.floor(Math.random() * candidates.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
yaa/packages/video/instagram-reels-producer/src/producer.ts#
- L125 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const cta = CTA_TEMPLATES[Math.floor(Math.random() * CTA_TEMPLATES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
yaa/packages/video/instagram-stories-producer/src/producer.ts#
- L110 —
ALLOW(MEDIUM, rulerandom-pick-from-array)- Code:
const cta = STORY_CTA_TEMPLATES[Math.floor(Math.random() * STORY_CTA_TEMPLATES.length)]; - Rationale: Random index into an array — typical for shuffle/sample/diversification; non-determinism intended.
- Code:
yaa/packages/web/src/app/api/v1/factcheck/[id]/route.ts#
- L139 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/web/src/app/api/v1/factcheck/batch/route.ts#
- L240 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/web/src/app/api/v1/factcheck/route.ts#
- L261 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/web/src/app/api/v1/factcheck/stats/route.ts#
- L81 —
ALLOW(HIGH, ruleid-token-toString)- Code:
returnreq*${Date.now().toString(36)}*${Math.random().toString(36).substring(2, 9)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
yaa/packages/web/src/lib/push/pushTokenClient.ts#
- L58 —
ALLOW(HIGH, ruleid-token-toString)- Code:
const next = typeof crypto?.randomUUID === 'function' ? crypto.randomUUID() :${Date.now()}-${Math.random().toString(16).slice(2)}; - Rationale: Math.random().toString(36|16) used to mint a non-secret ID/token suffix; covered by V1-P2-08xx CSPRNG-id audit which carved out true secrets.
- Code:
Appendix — Default-Allow Rows (LOW confidence)#
1996 sites fell through to default-allow. Per V1-P2-3403, each requires an
inline // random:legitimate <reason> annotation; the annotation step is the
second-pass review.
apps/aphrodite/streaming/src/routes/streams.ts:368—key += chars.charAt(Math.floor(Math.random() * chars.length));apps/arete/web/src/pages/habits/HabitDetailPage.tsx:62—const rand = Math.random();apps/arete/web/src/pages/wellness/WellnessPage.tsx:71—const mood = moods[Math.floor(Math.random() * 5) + 1];apps/asase/marketplace/src/b2b-portal.ts:349—returnORD-B2B-${Date.now()}-${Math.floor(Math.random() * 10000)`apps/asase/marketplace/src/b2b-portal.ts:355—returnSCH-${Date.now()}-${Math.floor(Math.random() * 10000)`apps/asase/marketplace/src/farmer-input-store.ts:469—returnIORD-${Date.now()}-${Math.floor(Math.random() * 10000)`apps/cybele/api/src/routes/gateway.ts:380—const latencyMs = Math.floor(Math.random() * 30) + 5;apps/demeter/api/src/routes/weather.ts:156—windSpeedKmh: Math.round(Math.random() * 20 + 5),apps/demeter/api/src/routes/weather.ts:159—rainfallMm: Math.random() > 0.7 ? Math.round(Math.random() * 5 * 10) / 10 : 0,apps/demeter/api/src/routes/weather.ts:188—const variation = Math.round((Math.random() * 6 - 3) * 10) / 10;apps/demeter/api/src/routes/weather.ts:198—humidity: Math.round(50 + Math.random() * 40),apps/demeter/api/src/routes/weather.ts:199—rainfallMm: Math.random() > 0.6 ? Math.round(Math.random() * 15 * 10) / 10 : 0,apps/demeter/api/src/routes/weather.ts:200—windSpeedKmh: Math.round(Math.random() * 25 + 3),apps/demeter/api/src/routes/weather.ts:201—uvIndex: isSummer ? Math.round(Math.random() * 4 + 5) : Math.round(Math.random() * 3 + 1),apps/demeter/api/src/routes/weather.ts:206—: Math.random() > 0.5apps/demeter/api/src/routes/weather.ts:619—const variation = Math.round((Math.sin(i * 0.3) * 4 + Math.random() * 3 - 1.5) * 10) / 10;apps/demeter/api/src/routes/weather.ts:630—humidity: Math.round(50 + Math.sin(i * 0.5) * 20 + Math.random() * 10),apps/demeter/api/src/routes/weather.ts:631—rainfallMm: Math.random() > 0.65 ? Math.round(Math.random() * 12 * 10) / 10 : 0,apps/demeter/api/src/routes/weather.ts:632—windSpeedKmh: Math.round(8 + Math.random() * 15),apps/demeter/api/src/routes/weather.ts:638—: Math.random() > 0.5apps/demeter/web/src/pages/gardens/BulkEditPage.tsx:272—const isError = Math.random() < 0.05;apps/demeter/web/src/pages/sensors/SensorVisualizationPage.tsx:84—const value = Math.round(base + Math.random() * 5);apps/demeter/web/src/pages/sensors/SensorVisualizationPage.tsx:93—moisture: 30 + Math.round(Math.random() * 30),apps/demeter/web/src/pages/sensors/SensorVisualizationPage.tsx:94—temperature: 60 + Math.round(Math.random() * 25),apps/demeter/web/src/pages/tasks/CalendarPage.tsx:345—isCompleted: isBeforeToday && Math.random() > 0.3,apps/freya/api/src/other-routes.ts:232—const qty = Math.floor(Math.random() * 30);apps/hathor/narrative-api/src/services/dialogue.service.ts:965—let roll = Math.random() * totalWeight;apps/hathor/svc-veilborn-core/src/abilities.ts:1188—if (!effect.spreads || Math.random() * 100 > (effect.spreadChance ?? 50)) {apps/hathor/svc-veilborn-core/src/asset-gen.ts:92—const seed = params.seed || Math.floor(Math.random() * 1000000);apps/hathor/svc-veilborn-core/src/asset-gen.ts:104—processingTime: 50 + Math.random() * 50,apps/hathor/svc-veilborn-core/src/beta-program.ts:444—code += chars.charAt(Math.floor(Math.random() * chars.length));apps/hathor/svc-veilborn-core/src/cards.ts:594—const j = Math.floor(Math.random() * (i + 1));apps/hathor/svc-veilborn-core/src/cards.ts:1040—value = Math.random() * 100;apps/hathor/svc-veilborn-core/src/cards.ts:1782—randomFn: () => number = Math.randomapps/hathor/svc-veilborn-core/src/combat-ai.ts:313—if (difficultyNoise > 0 && Math.random() < difficultyNoise) {apps/hathor/svc-veilborn-core/src/combat-ai.ts:315—const randomIndex = Math.floor(Math.random() * Math.min(3, threats.length));apps/hathor/svc-veilborn-core/src/combat-ai.ts:467—if (difficultyNoise > 0 && Math.random() < difficultyNoise && positions.length > 1) {apps/hathor/svc-veilborn-core/src/combat-ai.ts:468—const randomIndex = Math.floor(Math.random() * Math.min(3, positions.length));apps/hathor/svc-veilborn-core/src/combat-ai.ts:1042—if (difficultyNoise > 0 && Math.random() < difficultyNoise && decisions.length > 1) {apps/hathor/svc-veilborn-core/src/combat-ai.ts:1045—const randomIndex = Math.floor(Math.random() * numToConsider);apps/hathor/svc-veilborn-core/src/combat.ts:763—value: Math.floor(Math.random() * 20) + 1, // Initial rollapps/hathor/svc-veilborn-core/src/data-access.ts:323—const r = (Math.random() * 16) | 0;apps/hathor/svc-veilborn-core/src/data-access.ts:887—code += chars.charAt(Math.floor(Math.random() * chars.length));apps/hathor/svc-veilborn-core/src/dice.ts:80—return Math.floor(Math.random() * DICE_SIDES) + 1;apps/hathor/svc-veilborn-core/src/multiplayer.ts:402—code += chars.charAt(Math.floor(Math.random() * chars.length));apps/hathor/svc-veilborn-core/src/multiplayer.ts:1219—results.push(Math.floor(Math.random() * parsed.sides) + 1);apps/hathor/svc-veilborn-core/src/veylmaster.ts:234—results.push(Math.floor(Math.random() * sides) + 1);apps/hathor/svc-veilborn-core/src/veylmaster.ts:1017—const first = this.firstNames[Math.floor(Math.random() * this.firstNames.length)];apps/hathor/svc-veilborn-core/src/veylmaster.ts:1018—const last = this.lastNames[Math.floor(Math.random() * this.lastNames.length)];apps/hathor/svc-veilborn-core/src/veylmaster.ts:1098—const traitCount = 2 + Math.floor(Math.random() * 2);apps/hathor/svc-veilborn-core/src/wargame.ts:1358—const die1 = Math.floor(Math.random() * 6) + 1;apps/hathor/svc-veilborn-core/src/wargame.ts:1359—const die2 = Math.floor(Math.random() * 6) + 1;apps/hathor/svc-veilborn-strategy/src/ai-opponent.ts:768—if (Math.random() < this.difficultyParams.mistakeChance) {apps/hathor/svc-veilborn-strategy/src/ai-opponent.ts:1018—if (Math.random() > randomFactor) {apps/hathor/svc-veilborn-strategy/src/ai-opponent.ts:1024—let random = Math.random() * totalScore;apps/hathor/svc-veilborn-strategy/src/ai/ai-common.ts:465—this.randomGen = Math.random;apps/hathor/svc-veilborn-strategy/src/ai/ai-common.ts:790—return Math.random() > 0.5 ? 'deceptive' : 'analytical';apps/hathor/svc-veilborn-strategy/src/ai/ai-common.ts:793—return Math.random() > 0.5 ? 'methodical' : 'defensive';apps/hathor/svc-veilborn-strategy/src/ai/ai-common.ts:796—return Math.random() > 0.5 ? 'analytical' : 'methodical';apps/hathor/svc-veilborn-strategy/src/ai/ai-common.ts:799—return Math.random() > 0.5 ? 'deceptive' : 'diplomatic';apps/hathor/svc-veilborn-strategy/src/ai/ai-game-master.ts:293—title = templates.titles[Math.floor(Math.random() * templates.titles.length)];apps/hathor/svc-veilborn-strategy/src/ai/ai-game-master.ts:295—templates.descriptions[Math.floor(Math.random() * templates.descriptions.length)];apps/hathor/svc-veilborn-strategy/src/balance/tournament-runner.ts:159—Math.random() > 0.5 ? sortedParticipants[i]!.id : sortedParticipants[j]!.id;apps/hathor/svc-veilborn-strategy/src/echoes-of-fate/timeline-engine.ts:731—const roll = Math.random();apps/hathor/svc-veilborn-strategy/src/echoes-of-fate/timeline-engine.ts:809—const roll = Math.random();apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:254—const j = Math.floor(Math.random() * (i + 1));apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:285—if (sacredSitesPlaced < sacredSites && Math.random() < 0.15) {apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:288—} else if (nexusesPlaced < nexuses && Math.random() < 0.1) {apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:293—} else if (Math.random() < 0.1) {apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:332—const prefix = prefixes[type][Math.floor(Math.random() * prefixes[type].length)];apps/hathor/svc-veilborn-strategy/src/grand-campaign/campaign-manager.ts:578—const j = Math.floor(Math.random() * (i + 1));apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:566—const attackerDamage = Math.random() * this.battleState.attacker.strength * 0.2;apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:567—const defenderDamage = Math.random() * this.battleState.defender.strength * 0.2;apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:703—const action = Math.random();apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:710—currentInfluence + 10 + Math.random() * 10apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:719—if (Math.random() < 0.3) {apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:841—const intentSuccess = Math.random();apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:962—const sabotageChance = Math.random();apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:966—this.context.participants[Math.floor(Math.random() * this.context.participants.length)];apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:1110—const x = Math.floor(Math.random() * this.gameState.boardSize);apps/hathor/svc-veilborn-strategy/src/grand-campaign/mode-orchestrator.ts:1111—const y = Math.floor(Math.random() * this.gameState.boardSize);apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:67—const j = Math.floor(Math.random() * (i + 1));apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:265—Math.random() * (agendaDistribution.maxTraitors - agendaDistribution.minTraitors + 1)apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:606—if (Math.random() < mission.penaltyOnFailure.casualtiesRisk) {apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:607—const casualtyIndex = Math.floor(Math.random() * mission.teamMembers.length);apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:717—const isAccurate = Math.random() < ability.accuracy;apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:728—:Agenda progress: ${Math.floor(Math.random() * 100)}%;apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:745—: Math.random() < 0.5apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:756—: Math.random() < 0.5apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:1148—const wasDetected = Math.random() < detectionChance;apps/hathor/svc-veilborn-strategy/src/weave-conspiracy/conspiracy-engine.ts:1305—const resisted = Math.random() < 0.3 - player.voidCorruption.resistanceRolls * 0.1;apps/hestia/web/src/app/(app)/nutrition/page.tsx:53—calories: 1800 + Math.floor(Math.random() * 600),apps/hestia/web/src/app/(app)/nutrition/page.tsx:54—protein: 90 + Math.floor(Math.random() * 50),apps/hestia/web/src/app/(app)/nutrition/page.tsx:55—carbs: 200 + Math.floor(Math.random() * 100),apps/hestia/web/src/app/(app)/nutrition/page.tsx:56—fat: 50 + Math.floor(Math.random() * 40),apps/hestia/web/src/app/(app)/nutrition/page.tsx:57—fiber: 18 + Math.floor(Math.random() * 15),apps/hestia/web/src/app/(app)/nutrition/page.tsx:58—sugar: 30 + Math.floor(Math.random() * 30),apps/hestia/web/src/app/(app)/nutrition/page.tsx:59—sodium: 1600 + Math.floor(Math.random() * 1000),apps/hestia/web/src/app/(app)/nutrition/page.tsx:60—water: 1500 + Math.floor(Math.random() * 1500),apps/hestia/web/src/app/(app)/recipes/analytics/page.tsx:180—count: Math.floor(Math.random() * 4),apps/iris/developer-portal/src/services/model-distillation-edge-service.ts:121—random: options.random ?? Math.random,apps/iris/developer-portal/src/services/model-ensemble-voting-service.ts:96—random: options.random ?? Math.random,apps/iris/developer-portal/src/services/model-explanation-generation-service.ts:94—random: options.random ?? Math.random,apps/iris/developer-portal/src/services/model-specialization-fine-tuning-service.ts:123—random: options.random ?? Math.random,apps/iris/mobile/src/services/StorageService.ts:98—key += chars.charAt(Math.floor(Math.random() * chars.length));apps/iris/web/widget/src/lib/api.ts:432—this.mockResponses[Math.floor(Math.random() * this.mockResponses.length)];apps/iris/web/widget/src/lib/api.ts:451—this.mockResponses[Math.floor(Math.random() * this.mockResponses.length)];apps/lilith/contracts/scripts/soak-test.ts:277—let random = Math.random() * totalWeight;apps/lilith/contracts/scripts/soak-test.ts:293—const tokenId = Math.floor(Math.random() * 1000000);apps/lilith/contracts/scripts/soak-test.ts:386—Math.floor(Math.random() * 500) + 100 // 1-6% royaltyapps/lilith/contracts/scripts/soak-test.ts:477—Math.floor(Math.random() * 10) + 1, // 1-10 pointsapps/lilith/mobile/src/components/meditation/StatsChart.tsx:155—<View key={i} style={[styles.skeletonBar, { height: Math.random() * sizeConfig.height * 0.8 + 20 }]} />apps/lilith/mobile/src/components/skeleton/SkeletonText.tsx:66—const variance = Math.random() * 10;apps/lilith/mobile/src/services/ComfyUIService.ts:418—await this.delay(2000 + Math.random() * 3000);apps/lilith/mobile/src/services/download/ResumableDownloader.ts:196—await new Promise((resolve) => setTimeout(resolve, 50 + Math.random() * 100));apps/lilith/mobile/src/services/meditation/BackgroundSoundsService.ts:880—const white = Math.random() * 2 - 1;apps/lilith/mobile/src/services/metaverse/GroupMeditationTempleService.ts:555—position: { x: Math.random() * 10 - 5, y: 0, z: Math.random() * 10 - 5 },apps/lilith/mobile/src/services/themes/AIArtFusionService.ts:122—? baseSeed + Math.floor(Math.random() * preset.mutationRate * 1000)apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:647—score += Math.random() * 30;apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:671—if (Math.random() < mistakeRate && scoredMoves.length > 2) {apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:673—const index = Math.floor(Math.random() * Math.min(5, scoredMoves.length - 1)) + 1;apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:687—let random = Math.random() * totalScore;apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:755—const delay = delayConfig.min + Math.random() * (delayConfig.max - delayConfig.min);apps/lilith/mobile/src/services/veilborn/VeilbornOfflineAI.ts:859—scores[intent] += Math.random() * config.randomness * 20;apps/lilith/shared/common/index.ts:14—bytes[index] = Math.floor(Math.random() * 256);apps/lilith/svc-ai/src/adaptive-content/adaptive-content-service.ts:616—if (Math.random() < 0.3) {apps/lilith/svc-ai/src/agent-coordination.ts:318—execution_time: 100 + Math.random() * 500,apps/lilith/svc-ai/src/agent-coordination.ts:356—agreement_level: 0.8 + Math.random() * 0.15,apps/lilith/svc-ai/src/agent-coordination.ts:439—const improvementBoost = 0.05 + Math.random() * 0.1;apps/lilith/svc-ai/src/agent-coordination.ts:561—const improvementScore = 0.85 + Math.random() * 0.1;apps/lilith/svc-ai/src/ambient-soundscape/ambient-soundscape-service.ts:1475—const distance = 5 + Math.random() * 20;apps/lilith/svc-ai/src/biometric-integration/biometric-integration-service.ts:1082—phase: Math.random() * Math.PI * 2,apps/lilith/svc-ai/src/daily-content/autonomous-daily-content-service.ts:1146—durationSeconds: 60 + Math.floor(Math.random() * 120), // 1-3 minutesapps/lilith/svc-ai/src/document-processing/service.ts:938—confidence[field.name] = 0.85 + Math.random() * 0.1;apps/lilith/svc-ai/src/facial-animation-lipsync/facial-animation-lipsync-service.ts:2179—id += chars.charAt(Math.floor(Math.random() * chars.length));apps/lilith/svc-ai/src/generative-nft/generative-nft-service.ts:422—return Math.random() >= 1 - (rule.probability ?? 1);apps/lilith/svc-ai/src/generative-nft/generative-nft-service.ts:842—const cx = Math.random() * 100;apps/lilith/svc-ai/src/generative-nft/generative-nft-service.ts:843—const delay = Math.random() * config.duration;apps/lilith/svc-ai/src/low-latency-infrastructure/edge-deployment.ts:43—bytes[i] = Math.floor(Math.random() * 256)apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:43—bytes[i] = Math.floor(Math.random() * 256);apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:56—bytes[i] = Math.floor(Math.random() * 256);apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:266—return Math.random() < this.probability;apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:272—return Math.random() < this.probability;apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:308—return Math.random() < Math.min(1, this.probability * 3);apps/lilith/svc-ai/src/low-latency-infrastructure/latency-monitoring.ts:312—return Math.random() < this.probability;apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:1998—y: 0.8 + Math.random() * 1.2,apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:2003—y: Math.random() * 0.2,apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:2007—size: 0.02 + Math.random() * 0.03,apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:2008—lifetime: 2 + Math.random() * 3,apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:2009—opacity: 0.5 + Math.random() * 0.5apps/lilith/svc-ai/src/movement-meditation-animation/movement-meditation-animation-service.ts:2574—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/personality-engine.ts:399—let random = Math.random() * totalWeight;apps/lilith/svc-ai/src/personality-response.ts:44—random: RandomGenerator = Math.randomapps/lilith/svc-ai/src/providers/openrouter-provider.ts:2319—const random = Math.random();apps/lilith/svc-ai/src/realtime-processing/realtime-processing-service.ts:310—seed: input.seed ?? Math.floor(Math.random() * 1000000),apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:207—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:917—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:938—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:955—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:993—const randomIndex = Math.floor(Math.random() * typeNames.length);apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:1032—position: { x: Math.floor(Math.random() * 10), y: Math.floor(Math.random() * 10) }apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:1108—x: Math.floor(Math.random() * mapSize.width),apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:1109—y: Math.floor(Math.random() * mapSize.height)apps/lilith/svc-ai/src/rpg-combat-tactics/combat-tactics-service.ts:1810—const typeIndex = Math.floor(Math.random() * types.length);apps/lilith/svc-ai/src/rpg-game-mechanics/game-mechanics-service.ts:203—const roll = Math.floor(Math.random() * DICE_SIDES) + 1;apps/lilith/svc-ai/src/rpg-game-mechanics/game-mechanics-service.ts:212—const roll = Math.floor(Math.random() * DICE_SIDES) + 1;apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:127—ability.charges = 3 + Math.floor(Math.random() * 5);apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:147—if (rarityWeight >= 5) {return Math.random() < 0.3 ? 'ultimate' : 'active';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:148—if (rarityWeight >= 3) {return Math.random() < 0.5 ? 'active' : 'triggered';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:149—if (rarityWeight >= 1) {return Math.random() < 0.5 ? 'triggered' : 'passive';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:172—magnitude: 10 * rarityMultiplier + Math.floor(Math.random() * 20 * rarityMultiplier),apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:177—effect.duration = 10 + Math.floor(Math.random() * 20);apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:191—if (['damage', 'debuff'].includes(effectType)) {return Math.random() < 0.5 ? 'single' : 'area';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:208—const action = actions[type][Math.floor(Math.random() * actions[type].length)];apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:297—if (Math.random() < 0.5) {apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:719—{return Math.random() < 0.7 ? 'pristine' : 'battle-scarred';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:720—if (['rare', 'uncommon'].includes(rarity)) {return Math.random() < 0.5 ? 'worn' : 'pristine';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:741—attack: Math.floor(baseValue * (1 + Math.random() * 0.2)),apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:751—defense: Math.floor(baseValue * (1 + Math.random() * 0.2)),apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:786—const isPercentage = Math.random() < 0.3;apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:942—if (effectType === 'damage') {return Math.random() < 0.5 ? 'single' : 'area';}apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:1058—quantity: 1 + Math.floor(Math.random() * 3),apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:1146—Math.ceil(Math.random() * 3) as 1 | 2 | 3apps/lilith/svc-ai/src/rpg-items-artifacts/items-artifacts-service.ts:1151—Math.ceil(Math.random() * 4) as 1 | 2 | 3 | 4apps/lilith/svc-ai/src/rpg-multiplayer-social/multiplayer-social-service.ts:705—const j = Math.floor(Math.random() * (i + 1));apps/lilith/svc-ai/src/rpg-multiplayer-social/multiplayer-social-service.ts:1310—let random = Math.random() * totalWeight;apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:129—loyalty: 90 + Math.floor(Math.random() * 10),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:130—usefulness: 80 + Math.floor(Math.random() * 20),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:132—suspicionLevel: 10 + Math.floor(Math.random() * 20)apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:144—loyalty: 50 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:145—usefulness: 40 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:147—suspicionLevel: Math.floor(Math.random() * 30)apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:172—autonomy: 50 + Math.floor(Math.random() * 30),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:331—? 70 + Math.floor(Math.random() * 30)apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:332—: 40 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:525—? 30 + Math.floor(Math.random() * 30)apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:526—: 60 + Math.floor(Math.random() * 30),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:751—? 20 + Math.floor(Math.random() * 30)apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:752—: 60 + Math.floor(Math.random() * 30),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:774—plausibility: 50 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:775—detectability: 30 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-political-intrigue/political-intrigue-service.ts:790—const detected = Math.random() * 100 < detectionChance;apps/lilith/svc-ai/src/rpg-rewards-progression/rewards-progression-service.ts:595—const prefix = prefixes[category][Math.floor(Math.random() * prefixes[category].length)];apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:103—divergenceLevel: parentTimeline ? 30 + Math.floor(Math.random() * 40) : 0,apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:152—strength: 50 + Math.floor(Math.random() * 50),apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:153—protectedRadius: 10 + Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:180—divergenceLevel: 20 + Math.floor(Math.random() * 30),apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:181—mergeability: 70 - Math.floor(Math.random() * 40),apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:469—const success = Math.random() * 100 < resolution.successChance;apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:511—const prefix = prefixes[type][Math.floor(Math.random() * prefixes[type].length)];apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:524—return baseStrength[type] + Math.floor(Math.random() * 10);apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:536—return baseRadius[type] + Math.floor(Math.random() * 15);apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:789—if (Math.random() < 0.2) {apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:791—} else if (Math.random() < 0.1 && index < progression.length - 1) {apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:1002—const hasOpposite = Math.random() < 0.3;apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:1003—const isAware = Math.random() < 0.1;apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:1009—alignment: hasOpposite ? 'opposite' : Math.random() < 0.5 ? 'same' : 'neutral',apps/lilith/svc-ai/src/rpg-temporal-mechanics/temporal-mechanics-service.ts:1083—iterations: 1 + Math.floor(Math.random() * 10),apps/lilith/svc-ai/src/rpg-veylmaster/veylmaster-service.ts:806—return Math.floor(Math.random() * 30) + 5; // 5-35 minutes estimateapps/lilith/svc-ai/src/sacred-environments/sacred-environments-service.ts:141—const r = (Math.random() * 16) | 0;apps/lilith/svc-ai/src/strength-training-instruction/strength-training-instruction-service.ts:742—const j = Math.floor(Math.random() * (i + 1));apps/lilith/svc-ai/src/text-to-3d/text-to-3d-service.ts:939—return minTimestep + Math.random() * (maxTimestep - minTimestep);apps/lilith/svc-ai/src/text-to-3d/text-to-3d-service.ts:1531—if (tri && (Math.random() < ratio || newTriangles.length < targetFaces * 0.9)) {apps/lilith/svc-ai/src/text-to-3d/text-to-3d-service.ts:2159—const seed = request.seed ?? Math.floor(Math.random() * 1000000);apps/lilith/svc-ai/src/water-rendering/water-rendering-service.ts:363—data[idx] = Math.floor(Math.random() * 256);apps/lilith/svc-ai/src/water-rendering/water-rendering-service.ts:364—data[idx + 1] = Math.floor(Math.random() * 256);apps/lilith/svc-ai/src/water-rendering/water-rendering-service.ts:365—data[idx + 2] = Math.floor(Math.random() * 256);apps/lilith/svc-conversation/src/app.ts:1598—if (Math.random() < failureRate) {apps/lilith/svc-error-handler/src/app.ts:717—retryAfter = Date.now() + Math.random() * 5000 + 1000; // 1-6 second delayapps/lilith/svc-meditation-generation/src/time-optimizer.ts:584—const pickIndex = options.length > 0 ? Math.floor(Math.random() * options.length) : 0;apps/lilith/svc-meditation-generation/src/time-optimizer.ts:626—const pickIndex = options.length > 0 ? Math.floor(Math.random() * options.length) : 0;apps/lilith/svc-notification/src/dispatch/providers/mock.ts:48—if (this.shouldFail || Math.random() < this.failureRate) {apps/lilith/svc-payment-orchestrator/src/promotions/promotion-service.ts:388—const randomIndex = Math.floor(Math.random() * this.charset.length);apps/lilith/svc-tts/src/audio-tags/audio-tag-processor.ts:528—if (Math.random() > prob) {continue;}apps/lilith/svc-tts/src/audio-tags/audio-tag-processor.ts:560—const insertIndex = Math.floor(Math.random() * (sentences.length - 1));apps/lilith/web/src/components/AudioPlayer.tsx:388—height:${Math.random() * 20 + 5}px,apps/lilith/web/src/components/MetaverseCanvas.tsx:491—const rockGeometry = new THREE.DodecahedronGeometry(Math.random() * 0.5 + 0.3, 0);apps/lilith/web/src/components/MetaverseCanvas.tsx:499—Math.random() * 0.3,apps/lilith/web/src/components/metaverse/MetaverseCanvas.tsx:94—args={[0.3 + Math.random() * 0.5, 0.2 + Math.random() * 0.3, 0.3 + Math.random() * 0.5]}apps/lilith/web/src/components/metaverse/MetaverseCanvas.tsx:96—rotation={[Math.random() * 0.3, Math.random() * Math.PI * 2, Math.random() * 0.3]}apps/lilith/web/src/components/metaverse/MetaverseEngine.tsx:163—<FloatingCrystal key={i} position={[x, y, z]} rotationSpeed={0.5 + Math.random() * 0.5} />apps/lilith/web/src/components/research/NetworkVisualization.stories.tsx:421—const sourceIdx = Math.floor(Math.random() * nodes.length);apps/lilith/web/src/components/research/NetworkVisualization.stories.tsx:422—let targetIdx = Math.floor(Math.random() * nodes.length);apps/lilith/web/src/components/research/NetworkVisualization.stories.tsx:424—targetIdx = Math.floor(Math.random() * nodes.length);apps/lilith/web/src/components/research/NetworkVisualization.stories.tsx:432—Math.floor(Math.random() * 4)apps/lilith/web/src/components/topics/TopicWordCloud.tsx:155—const j = Math.floor(Math.random() * (i + 1));apps/lilith/web/src/components/ui/Skeleton.tsx:341—width={${60 + Math.random() * 40}%}apps/lilith/web/src/components/ui/scroll-area.stories.tsx:75—{Math.floor(Math.random() * 60)} minapps/lilith/web/src/design-system/typography/textRendering.ts:391—if (Math.random() < 0.3) {apps/lilith/web/src/features/veilborn/EchoesOfFateEngine.ts:829—const roll = Math.random();apps/lilith/web/src/features/veilborn/EchoesOfFateEngine.ts:835—const roll = Math.random();apps/lilith/web/src/hooks/use-advanced-audio.ts:262—const noise = (Math.random() * 2 - 1) * decay * wetness;apps/lilith/web/src/hooks/use-audio-streaming.ts:124—data[i] = (Math.random() * 2 - 1) * decay * 0.3;apps/lilith/web/src/lib/advanced-audio-engine.ts:12247—data[i] = (Math.random() * 2 - 1) * Math.pow(1 - i / length, decay);apps/lilith/web/src/lib/api-client-mock-chat.ts:108—if (currentIndex === Math.floor(words.length / 2) && Math.random() > 0.5) {apps/lilith/web/src/lib/asmr-synth.ts:100—const noise = (Math.random() * 2 - 1) * 0.6;apps/lilith/web/src/lib/asmr-synth.ts:134—const noise = (Math.random() * 2 - 1) * 0.4;apps/lilith/web/src/lib/asmr-synth.ts:148—const noise = (Math.random() * 2 - 1) * 0.25;apps/lilith/web/src/lib/asmr-synth.ts:163—const crackle = (Math.random() * 2 - 1) * 0.8 + Math.random() * 0.2;apps/lilith/web/src/lib/binaural-beat-generator.ts:71—const noise = noiseLevel ? (Math.random() * 2 - 1) * noiseLevel : 0;apps/lilith/web/src/lib/biometric-hardware-adapter.ts:50—eeg: [Math.random(), Math.random(), Math.random(), Math.random()],apps/lilith/web/src/lib/biometric-hardware-adapter.ts:51—heartRate: 60 + Math.random() * 20,apps/lilith/web/src/lib/biometric-hardware-adapter.ts:52—gsr: 1 + Math.random() * 10,apps/lilith/web/src/lib/biometric-hardware-adapter.ts:53—breath: 12 + Math.random() * 4,apps/lilith/web/src/lib/content-browser-3d.ts:457—positions[i * 3 + 1] = Math.random() * 20;apps/lilith/web/src/lib/persona-avatar-accessories.ts:94—const crystalGeometry = new THREE.OctahedronGeometry(0.03 + Math.random() * 0.02, 0);apps/lilith/web/src/lib/persona-avatar-accessories.ts:106—0.4 + Math.random() * 0.1apps/lilith/web/src/lib/persona-avatar-aura.ts:17—const radius = 0.5 + Math.random() * 0.3;apps/lilith/web/src/lib/spatial-audio-3d.ts:504—Math.random() * 20 + 5,apps/lilith/web/src/services/CrossDeviceHandoffManager.ts:1000—channelData[i] = (Math.random() * 2 - 1) * Math.pow(1 - i / length, 2);apps/maat/agent-console/src/lib/agent-data.ts:669—successRatePct: 94 + Math.random() * 6,apps/maat/agent-console/src/lib/agent-data.ts:670—avgLatencyMs: 2_400 + Math.random() * 800,apps/maat/agent-console/src/lib/agent-data.ts:671—tasksCompleted: Math.floor(8 + Math.random() * 6),apps/maat/agent-console/src/lib/agent-data.ts:672—costUsd: 3.5 + Math.random() * 2,apps/maat/agent-console/src/lib/agent-data.ts:696—successRatePct: 95 + Math.random() * 4,apps/maat/agent-console/src/lib/agent-data.ts:697—avgLatencyMs: 10_000 + Math.random() * 4_000,apps/maat/agent-console/src/lib/agent-data.ts:698—tasksCompleted: Math.floor(2 + Math.random() * 3),apps/maat/agent-console/src/lib/agent-data.ts:699—costUsd: 2.2 + Math.random() * 1.8,apps/metis/admin/src/components/DataTable.tsx:154—key={String(row[keyField] ?? Math.random())}apps/metis/web/src/app/assessments/[assessmentId]/page.tsx:899—const swapIndex = Math.floor(Math.random() * (index + 1));apps/nyx/education/challenges/orbital-mechanics/src/challenge-service.ts:218—const challengeType = config.types[Math.floor(Math.random() * config.types.length)];apps/nyx/education/challenges/orbital-mechanics/src/challenge-service.ts:242—? config.centralBodies[Math.floor(Math.random() * config.centralBodies.length)]apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:210—Math.floor(Math.random() * 5)apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:216—Math.floor(Math.random() * (OUTER_PLANETS.length + INNER_PLANETS.length))apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:282—const calculatePeriod = Math.random() < 0.5;apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:379—const planet = OUTER_PLANETS[Math.floor(Math.random() * Math.min(3, OUTER_PLANETS.length))];apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:455—const questionType = Math.random() < 0.5 ? 'longest' : 'shortest';apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:511—const orderingType = Math.random() < 0.5 ? 'orbital_period' : 'orbital_velocity';apps/nyx/education/challenges/orbital-mechanics/src/conjunction-prediction.ts:684—return min + Math.random() * (max - min);apps/nyx/education/challenges/orbital-mechanics/src/escape-velocity.ts:361—calculateProperty = Math.random() < 0.5 ? 'totalDeltaV' : 'transferTime';apps/nyx/education/challenges/orbital-mechanics/src/escape-velocity.ts:468—const questionType = Math.random() < 0.5 ? 'highest' : 'lowest';apps/nyx/education/challenges/orbital-mechanics/src/escape-velocity.ts:638—return min + Math.random() * (max - min);apps/nyx/education/challenges/orbital-mechanics/src/orbit-classification.ts:222—return min + Math.random() * (max - min);apps/nyx/education/challenges/orbital-mechanics/src/orbit-classification.ts:251—const orbitTypeRoll = Math.random();apps/nyx/education/challenges/star-identification/src/constellations.ts:2083—intermediate: { showNeighbors: true, showStarNames: false, rotation: Math.random() * 30 - 15 },apps/nyx/education/challenges/star-identification/src/constellations.ts:2084—advanced: { showNeighbors: false, showStarNames: false, rotation: Math.random() * 60 - 30 },apps/nyx/education/challenges/star-identification/src/constellations.ts:2085—expert: { showNeighbors: false, showStarNames: false, rotation: Math.random() * 180 },apps/nyx/education/challenges/star-identification/src/coordinate-pointing.ts:201—ra: Math.random() * 360,apps/nyx/education/challenges/star-identification/src/coordinate-pointing.ts:202—dec: Math.random() * 180 - 90,apps/nyx/vr-planetarium/src/dome/star-dome.ts:139—const ra = Math.random() * 360;apps/nyx/vr-planetarium/src/dome/star-dome.ts:141—const dec = (Math.acos(2 * Math.random() - 1) - Math.PI / 2) * (180 / Math.PI);apps/nyx/vr-planetarium/src/dome/star-dome.ts:145—const magRandom = Math.random();apps/nyx/vr-planetarium/src/dome/star-dome.ts:150—const tempBase = 3000 + Math.random() * 7000;apps/nyx/vr-planetarium/src/dome/star-dome.ts:188—let random = Math.random() * totalWeight;apps/nyx/vr-planetarium/src/dome/star-dome.ts:249—twinklePhases[i] = Math.random() * Math.PI * 2;apps/nyx/vr-planetarium/src/scenes/PlanetariumScene.tsx:210—const phi = Math.acos(2 * Math.random() - 1);apps/nyx/vr-planetarium/src/scenes/PlanetariumScene.tsx:215—const magnitude = -1.5 + Math.pow(Math.random(), 0.5) * 8;apps/nyx/vr-planetarium/src/scenes/PlanetariumScene.tsx:220—const r = Math.random();apps/oshun/bff/src/admin/state.ts:29613—const random = Math.floor(Math.random() * 1e10)apps/oshun/mobile/src/network/http-client.ts:134—const jitterMs = Math.floor(Math.random() * 100);apps/oshun/web/src/components/activity/ActivityDashboard.tsx:2022—const x = Math.random() * 200 - 100;apps/oshun/web/src/components/activity/ActivityDashboard.tsx:2023—const y = Math.random() * -150 - 50;apps/oshun/web/src/components/activity/ActivityDashboard.tsx:2024—const r = Math.random() * 720;apps/oshun/web/src/components/activity/ActivityDashboard.tsx:2025—const delay = Math.random() * 0.3;apps/oshun/web/src/components/activity/ActivityDashboard.tsx:2038—borderRadius: Math.random() > 0.5 ? tokens.radii.full : '1px',apps/oshun/web/src/components/assistant/AssistantPanel.tsx:1482—progress += Math.random() * 30 + 10;apps/oshun/web/src/components/assistant/AssistantPanel.tsx:1675—const bars = Array.from({ length: 12 }, () => Math.random() * 24 + 4);apps/oshun/web/src/components/domains/arete/AreteBalance.tsx:451—const dist = 40 + Math.random() * 60;apps/oshun/web/src/components/domains/arete/AreteBalance.tsx:454—const size = 4 + Math.random() * 5;apps/oshun/web/src/components/domains/arete/AreteBalance.tsx:457—const delay = Math.random() * 0.3;apps/oshun/web/src/components/domains/arete/AreteBalance.tsx:465—borderRadius: Math.random() > 0.5 ? '50%' : '2px',apps/oshun/web/src/components/domains/arete/AreteCoach.tsx:875—1200 + Math.random() * 800apps/oshun/web/src/components/domains/arete/AreteGoalSystem.tsx:851—setScores((prev) => ({ ...prev, [key]: filled ? 80 + Math.floor(Math.random() * 20) : 0 }));apps/oshun/web/src/components/domains/arete/AreteGoalSystem.tsx:1645—completed: i < 7 ? Math.random() > 0.2 : false,apps/oshun/web/src/components/domains/arete/AreteGoalSystem.tsx:1650—completed: i < 7 ? Math.random() > 0.3 : false,apps/oshun/web/src/components/domains/arete/AreteGoalSystem.tsx:1655—completed: i < 7 ? Math.random() > 0.5 : false,apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:195—ccy:${-80 - Math.random() * 120}px,apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:196—cr:${Math.random() * 720 - 360}deg,apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:198—delay:${Math.random() * 0.3}s,apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:199—size: 4 + Math.random() * 4,apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:210—history.push({ date: dateStr, done: Math.random() < completionRate });apps/oshun/web/src/components/domains/arete/AreteHabits.tsx:524—?color-mix(in srgb, ${ACCENT} ${60 + Math.random() * 40}%, transparent)``apps/oshun/web/src/components/domains/arete/AreteJournal.tsx:261—const wordCount = 150 + Math.floor(Math.random() * 600);apps/oshun/web/src/components/domains/arete/AreteJournal.tsx:278—createdAt: Date.now() - 86400000 * i - Math.random() * 43200000,apps/oshun/web/src/components/domains/arete/AreteTime.tsx:312—const distance = 30 + Math.random() * 30;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:315—const rotation = Math.random() * 720 - 360;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:318—const size = 4 + Math.random() * 4;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:328—borderRadius: Math.random() > 0.5 ? '50%' : '2px',apps/oshun/web/src/components/domains/arete/AreteTime.tsx:362—const left = 10 + Math.random() * 80;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:363—const top = 10 + Math.random() * 80;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:365—const size = 3 + Math.random() * 3;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:366—const delay = Math.random() * 3;apps/oshun/web/src/components/domains/arete/AreteTime.tsx:367—const duration = 3 + Math.random() * 2;apps/oshun/web/src/components/domains/arete/AreteVision.tsx:574—top:${10 + Math.random() * 30}%,apps/oshun/web/src/components/domains/arete/AreteVision.tsx:575—left:${10 + Math.random() * 80}%,apps/oshun/web/src/components/domains/arete/AreteVision.tsx:576—width: 6 + Math.random() * 6,apps/oshun/web/src/components/domains/arete/AreteVision.tsx:577—height: 6 + Math.random() * 6,apps/oshun/web/src/components/domains/arete/AreteVision.tsx:578—borderRadius: Math.random() > 0.5 ? '50%' : '2px',apps/oshun/web/src/components/domains/arete/AreteVision.tsx:580—animation:vis-confetti-fall ${0.8 + Math.random() _ 0.8}s ease-out ${i _ 0.05}s forwards,apps/oshun/web/src/components/domains/nyx/NyxAnalysisTools.tsx:702—r={2 + Math.random() * 3}apps/oshun/web/src/components/domains/nyx/NyxCelestialEvents.tsx:460—const visiblePlanets = ['Jupiter', 'Saturn', 'Mars'].filter(() => Math.random() > 0.3);apps/oshun/web/src/components/domains/nyx/NyxLearningCenter.tsx:81—readingTimeMinutes: 5 + Math.floor(Math.random() * 10),apps/oshun/web/src/components/domains/nyx/NyxSatelliteTracker.tsx:1020—opacity={0.3 + Math.random() * 0.4}apps/oshun/web/src/components/domains/nyx/NyxSolarMonitor.tsx:209—kpIndex: Math.round(3 + Math.random() * 4),apps/oshun/web/src/components/domains/nyx/NyxSonification.tsx:1236—const mag = 2.5 + Math.random() * 3;apps/oshun/web/src/components/domains/nyx/NyxSonification.tsx:1240—x: 20 + Math.random() * 360,apps/oshun/web/src/components/domains/nyx/NyxSonification.tsx:1241—y: 20 + Math.random() * 260,apps/oshun/web/src/components/domains/nyx/NyxTelescopeControl.tsx:601—currentAltitude: 30 + Math.random() * 50,apps/oshun/web/src/components/domains/nyx/NyxTelescopeControl.tsx:602—currentAzimuth: Math.random() * 360,apps/oshun/web/src/components/domains/nyx/education/EducationDashboard.tsx:249—left: Math.random() * 100,apps/oshun/web/src/components/domains/nyx/education/EducationDashboard.tsx:250—delay: Math.random() * 0.5,apps/oshun/web/src/components/domains/nyx/education/EducationDashboard.tsx:251—size: 4 + Math.random() * 6,apps/oshun/web/src/components/domains/nyx/education/EducationDashboard.tsx:253—duration: 1 + Math.random() * 1.5,apps/oshun/web/src/components/domains/nyx/solar-activity/data/solar-simulation.ts:522—if (dist <= 3) prob = 90 + Math.round(Math.random() * 10);apps/oshun/web/src/components/domains/nyx/solar-activity/data/solar-simulation.ts:523—else if (dist <= 8) prob = 60 + Math.round(Math.random() * 15);apps/oshun/web/src/components/domains/nyx/solar-activity/data/solar-simulation.ts:524—else if (dist <= 15) prob = 25 + Math.round(Math.random() * 10);apps/oshun/web/src/components/domains/nyx/solar-activity/data/solar-simulation.ts:525—else if (dist <= 22) prob = 5 + Math.round(Math.random() * 5);apps/oshun/web/src/components/domains/nyx/sonification/SonificationDashboard.tsx:58—'--bar-height':${20 + Math.sin(i _ 0.7) _ 15 + Math.random() * 10}px,apps/oshun/web/src/components/domains/tara/BreathworkTimer.tsx:364—x: Math.random() * 300 - 150,apps/oshun/web/src/components/domains/tara/BreathworkTimer.tsx:365—delay: Math.random() * 0.4,apps/oshun/web/src/components/domains/tara/BreathworkTimer.tsx:366—duration: 1.5 + Math.random() * 1,apps/oshun/web/src/components/domains/tara/BreathworkTimer.tsx:367—size: 4 + Math.random() * 6,apps/oshun/web/src/components/domains/tara/BreathworkTimer.tsx:368—rotation: Math.random() * 360,apps/oshun/web/src/components/domains/tara/SessionPlayer.tsx:553—x: Math.random() * 300 - 150,apps/oshun/web/src/components/domains/tara/SessionPlayer.tsx:554—delay: Math.random() * 0.4,apps/oshun/web/src/components/domains/tara/SessionPlayer.tsx:555—duration: 1.5 + Math.random() * 1,apps/oshun/web/src/components/domains/tara/SessionPlayer.tsx:556—size: 4 + Math.random() * 6,apps/oshun/web/src/components/domains/tara/SessionPlayer.tsx:557—rotation: Math.random() * 360,apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:220—left:${10 + Math.random() * 80}%,apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:221—top:${-5 - Math.random() * 10}%,apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:222—width: 6 + Math.random() * 4,apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:223—height: 6 + Math.random() * 4,apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:224—borderRadius: Math.random() > 0.5 ? '50%' : '2px',apps/oshun/web/src/components/domains/tara/TaraCourseDetail.tsx:226—animation:tcd-confetti-fall ${1.5 + Math.random() _ 1.5}s ease ${Math.random() _ 0.5}s both,apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:648—left:${10 + Math.random() * 80}%,apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:649—top:${-5 - Math.random() * 10}%,apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:650—width: 6 + Math.random() * 4,apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:651—height: 6 + Math.random() * 4,apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:652—borderRadius: Math.random() > 0.5 ? '50%' : '2px',apps/oshun/web/src/components/domains/tara/TaraCourses.tsx:654—animation:tc-confetti-fall ${1.5 + Math.random() _ 1.5}s ease ${Math.random() _ 0.5}s both,apps/oshun/web/src/components/domains/tara/TaraTeacherProfile.tsx:127—rating: 4.5 + Math.round(Math.random() * 5) / 10,apps/oshun/web/src/components/domains/tara/TaraTeacherProfile.tsx:143—available: Math.random() > 0.3,apps/oshun/web/src/components/domains/veritas/VeritasArticleAnalyzer.tsx:777—const idx = Math.floor(Math.random() * SAMPLE_ARTICLES.length);apps/oshun/web/src/components/domains/veritas/VeritasClaimChecker.tsx:1937—left: 20 + Math.random() * 60,apps/oshun/web/src/components/domains/veritas/VeritasClaimChecker.tsx:1939—delay: Math.random() * 0.5,apps/oshun/web/src/components/domains/veritas/VeritasClaimChecker.tsx:1940—size: 6 + Math.random() * 8,apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx:3393—const angle = Math.random() * Math.PI * 2;apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx:3394—const speed = 2 + Math.random() * 5;apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx:3400—size: 4 + Math.random() * 6,apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx:3402—rotation: Math.random() * Math.PI * 2,apps/oshun/web/src/components/onboarding/OnboardingWizard.tsx:3405—decay: 0.008 + Math.random() * 0.012,apps/oshun/web/src/components/routines/RoutineExecutionUI.tsx:876—const cx = (Math.random() * 200 - 100).toFixed(0);apps/oshun/web/src/components/routines/RoutineExecutionUI.tsx:877—const cy = (Math.random() * -120 - 20).toFixed(0);apps/oshun/web/src/components/search/SearchResultsView.tsx:4592—width={200 + Math.random() * 200}apps/oshun/web/src/components/studio/StudioBellonaBuildTemplatesWorkspace.tsx:2374—const delta = Math.round(Math.random() * 16) - 6;apps/oshun/web/src/components/studio/StudioBellonaBuildToExportOrchestrationWorkspace.tsx:1620—const varianceSeed = Math.random() * 8 - 4;apps/oshun/web/src/components/studio/StudioBellonaBuildToExportOrchestrationWorkspace.tsx:2208—const delta = Math.floor(Math.random() * 19) - 9;apps/oshun/web/src/components/studio/StudioBellonaContentAddressableBuildCacheWorkspace.tsx:2322—const delta = Math.round(Math.random() * 14) - 5;apps/oshun/web/src/components/studio/StudioBellonaEngineSynchronizationWorkspace.tsx:1011—p95Latency: 58 + baseline * 6 + Math.floor(Math.random() * 8),apps/oshun/web/src/components/studio/StudioBellonaEngineSynchronizationWorkspace.tsx:1012—failureRate: Number((0.7 + baseline * 0.4 + Math.random() * 0.3).toFixed(2)),apps/oshun/web/src/components/studio/StudioBellonaEngineSynchronizationWorkspace.tsx:1013—throughputPerHour: 120 + baseline * 24 + Math.floor(Math.random() * 15),apps/oshun/web/src/components/studio/StudioBellonaEngineSynchronizationWorkspace.tsx:1014—costPerHour: Number((82 + baseline * 4.5 + Math.random() * 3.2).toFixed(2)),apps/oshun/web/src/components/studio/StudioBellonaEngineSynchronizationWorkspace.tsx:1934—const delta = Math.floor(Math.random() * 19) - 9;apps/oshun/web/src/components/studio/StudioBellonaExportPipelineWorkspace.tsx:1778—const varianceSeed = Math.random() * 8 - 4;apps/oshun/web/src/components/studio/StudioBellonaExportPipelineWorkspace.tsx:2145—const delta = Math.round(Math.random() * 14) - 5;apps/oshun/web/src/components/studio/StudioBellonaMetaHumanPipelineWorkspace.tsx:1479—const variance = Math.random() * 12 - 6;apps/oshun/web/src/components/studio/StudioBellonaMetaHumanPipelineWorkspace.tsx:2555—const lagDelta = Math.round(Math.random() * 18) - 6;apps/oshun/web/src/components/studio/StudioBellonaOpenUsdLayerCompositionWorkspace.tsx:2221—const lagDelta = Math.round(Math.random() * 20) - 10;apps/oshun/web/src/components/studio/StudioBellonaOpenUsdMaterialXWorkspace.tsx:2212—const lagDelta = Math.round(Math.random() * 20) - 10;apps/oshun/web/src/components/studio/StudioBellonaOpenUsdStageManagementWorkspace.tsx:2402—const lagDelta = Math.round(Math.random() * 18) - 6;apps/oshun/web/src/components/studio/StudioBellonaOpenUsdVariantManagementWorkspace.tsx:2225—const lagDelta = Math.round(Math.random() * 20) - 10;apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx:1091—p95Latency: 64 + baseline * 8 + Math.floor(Math.random() * 7),apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx:1092—failureRate: Number((0.8 + baseline * 0.45 + Math.random() * 0.35).toFixed(2)),apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx:1093—throughputPerHour: 88 + baseline * 22 + Math.floor(Math.random() * 14),apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx:1094—costPerHour: Number((66 + baseline * 4.1 + Math.random() * 2.8).toFixed(2)),apps/oshun/web/src/components/studio/StudioBellonaSyncConflictResolutionWorkspace.tsx:2210—const delta = Math.floor(Math.random() * 19) - 9;apps/oshun/web/src/components/welcome/WelcomePageView.tsx:188—x: Math.random() * canvas.offsetWidth,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:189—y: Math.random() * canvas.offsetHeight,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:190—size: 0.5 + Math.random() * 1.5,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:191—opacity: 0.1 + Math.random() * 0.3,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:192—speed: 0.05 + Math.random() * 0.15,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:193—phase: Math.random() * Math.PI * 2,apps/oshun/web/src/components/welcome/WelcomePageView.tsx:212—star.x = Math.random() * canvas.offsetWidth;apps/oshun/web/src/design-system/components/Confetti.tsx:163—output[i] = (Math.random() * 2 - 1) * (1 - i / bufferSize);apps/oshun/web/src/design-system/components/Confetti.tsx:209—const speed = config.velocity * (0.5 + Math.random() * 0.5);apps/oshun/web/src/design-system/components/Confetti.tsx:216—vy: Math.sin(angle) * speed - Math.random() * 10,apps/oshun/web/src/design-system/components/Confetti.tsx:217—rotation: Math.random() * 360,apps/oshun/web/src/design-system/components/Confetti.tsx:219—scale: 0.6 + Math.random() * 0.4,apps/oshun/web/src/design-system/components/Confetti.tsx:220—color: config.colors[Math.floor(Math.random() * config.colors.length)],apps/oshun/web/src/design-system/components/Confetti.tsx:221—shape: config.shapes[Math.floor(Math.random() * config.shapes.length)],apps/oshun/web/src/design-system/components/Confetti.tsx:222—emoji: config.emojis[Math.floor(Math.random() * config.emojis.length)],apps/oshun/web/src/design-system/components/Confetti.tsx:223—size: config.sizeRange[0] + Math.random() * (config.sizeRange[1] - config.sizeRange[0]),apps/oshun/web/src/design-system/components/Confetti.tsx:225—drag: 0.02 + Math.random() * 0.03,apps/oshun/web/src/design-system/components/Confetti.tsx:226—wobble: Math.random() * 10,apps/oshun/web/src/design-system/components/Confetti.tsx:227—wobbleSpeed: 0.05 + Math.random() * 0.1,apps/oshun/web/src/design-system/components/HabitCheckbox.tsx:55—speed: 20 + Math.random() * 30,apps/oshun/web/src/design-system/components/HabitCheckbox.tsx:56—scale: 0.4 + Math.random() * 0.6,apps/oshun/web/src/design-system/components/HabitCheckbox.tsx:58—rotation: Math.random() * 360,apps/oshun/web/src/lib/arete/arete-simulation-data.ts:47—const completed = Math.random() < completionRate;apps/oshun/web/src/lib/arete/arete-simulation-data.ts:51—frozen: !completed && Math.random() < 0.1,apps/oshun/web/src/lib/arete/arete-simulation-data.ts:60—const count = Math.floor(Math.random() * 9);apps/oshun/web/src/lib/arete/arete-simulation-data.ts:78—const entryCount = Math.random() < 0.6 ? Math.floor(Math.random() * 3) + 1 : 0;apps/oshun/web/src/lib/arete/arete-simulation-data.ts:82—wordCount: entryCount * (150 + Math.floor(Math.random() * 400)),apps/oshun/web/src/lib/arete/arete-simulation-data.ts:1712—timesUsed: Math.floor(Math.random() * 8),apps/oshun/web/src/lib/arete/arete-simulation-data.ts:1713—averageRating: 3.5 + Math.random() * 1.5,apps/oshun/web/src/lib/arete/arete-simulation-data.ts:1714—isFavorite: Math.random() < 0.1,apps/oshun/web/src/lib/arete/arete-simulation-data.ts:1973—predictedMood: 6.5 + Math.random() * 2,apps/oshun/web/src/lib/nyx/nyx-extended-simulation.ts:83—surfaceBrightness: mag + 3 + Math.random() * 2,apps/oshun/web/src/lib/nyx/nyx-extended-simulation.ts:2142—surfaceBrightness: mag + 2.5 + Math.random() * 2,apps/oshun/web/src/lib/nyx/nyx-extended-simulation.ts:2719—surfaceBrightness: mag + 2 + Math.random() * 2,apps/oshun/web/src/lib/nyx/nyx-extended-simulation.ts:3106—value: Math.round((3 + Math.sin(i * 0.8) * 2 + Math.random() * 1.5) * 10) / 10,apps/oshun/web/src/lib/nyx/nyx-extended-simulation.ts:3114—count: Math.round(140 + Math.sin(i * 0.3) * 25 + Math.random() * 15),apps/oshun/web/src/lib/nyx/nyx-renderer-simulation.ts:48—const drawCalls = 200 + Math.sin(phase * 0.7) * 50 + Math.floor(Math.random() * 20);apps/oshun/web/src/lib/nyx/nyx-renderer-simulation.ts:49—const gpuMemory = 300 + Math.sin(phase * 0.3) * 100 + Math.random() * 20;apps/oshun/web/src/lib/nyx/nyx-renderer-simulation.ts:58—cpuTimeMs: Math.round((2.5 + Math.random() * 1.5) * 100) / 100,apps/oshun/web/src/lib/nyx/nyx-renderer-simulation.ts:59—gpuTimeMs: Math.round((8 + Math.sin(phase) * 3 + Math.random() * 1.5) * 100) / 100,apps/oshun/web/src/lib/nyx/nyx-widgets-simulation.ts:615—const maxAlt = 25 + Math.round(Math.random() * 55);apps/oshun/web/src/lib/nyx/nyx-widgets-simulation.ts:616—const mag = -(1.0 + Math.random() * 2.5);apps/oshun/web/src/lib/nyx/nyx-widgets-simulation.ts:622—durationSec: 180 + Math.round(Math.random() * 240),apps/oshun/web/src/lib/nyx/nyx-widgets-simulation.ts:2238—windSpeedKmh: 8 + Math.round(Math.random() * 15),apps/oshun/web/src/lib/nyx/nyx-widgets-simulation.ts:2282—jetStreamSpeedKmh: jetStream + Math.round(Math.random() * 30),apps/oshun/web/src/lib/tara/tara-cache.ts:516—const increment = totalBytes * (0.03 + Math.random() * 0.05);apps/oshun/web/src/lib/tara/tara-cache.ts:582—const increment = dl.totalBytes * (0.03 + Math.random() * 0.05);apps/oshun/web/src/lib/veritas/veritas-simulation-data.ts:2547—agree: Math.floor(Math.random() * 200) + 50,apps/oshun/web/src/lib/veritas/veritas-simulation-data.ts:2548—disagree: Math.floor(Math.random() * 80) + 10,apps/oshun/web/src/lib/veritas/veritas-simulation-data.ts:2549—unsure: Math.floor(Math.random() * 40) + 5,apps/oshun/web/src/observability/error-monitoring.ts:186—if (Math.random() < 1 - (config.sampleRate ?? 1.0)) {apps/psyche/admin/src/app/dashboard/knowledge/upload/page.tsx:93—chunksCreated: Math.floor(Math.random() * 50) + 10,apps/psyche/admin/src/app/dashboard/knowledge/upload/page.tsx:94—embeddingsGenerated: Math.floor(Math.random() * 50) + 10,apps/psyche/admin/src/app/dashboard/knowledge/upload/page.tsx:95—processingTimeMs: Math.floor(Math.random() * 5000) + 2000,apps/psyche/admin/src/components/forms/persona/avatar-form.tsx:1012—return prev + Math.random() * 2;apps/psyche/admin/src/components/forms/persona/voice-form.tsx:289—height:${Math.random() * 100}%,apps/tara/mobile/src/store/meditationStore.ts:175—playCount: Math.floor(Math.random() * 10000),apps/tara/mobile/src/store/meditationStore.ts:176—rating: 4 + Math.random(),apps/tara/mobile/src/store/meditationStore.ts:177—ratingCount: Math.floor(Math.random() * 500),apps/tara/mobile/src/store/meditationStore.ts:178—createdAt: new Date(Date.now() - Math.random() * 365 * 24 * 60 * 60 * 1000).toISOString(),apps/tara/web/src/app/[locale]/(app)/progress/page.tsx:137—if (Math.random() < 0.6) {apps/tara/web/src/app/[locale]/(app)/progress/page.tsx:138—const sessions = Math.random() < 0.8 ? 1 : 2; // 20% chance of 2 sessionsapps/tara/web/src/app/[locale]/(app)/progress/page.tsx:139—const minutes = Math.floor(Math.random() * 40) + 10; // 10-50 minutesapps/tara/web/src/app/[locale]/(app)/progress/page.tsx:152—minutes: Math.floor(Math.random() * 30) + 15,apps/tara/web/src/lib/utils.ts:123—result += chars.charAt(Math.floor(Math.random() * chars.length));apps/veritas/api/src/domain/ad-networks.ts:1021—correlator: Math.floor(Math.random() * 1_000_000_000),apps/veritas/api/src/domain/sandbox.ts:1010—if (config.errorRate && Math.random() < config.errorRate) {apps/veritas/api/src/interfaces/http/middleware/rateLimit.ts:90—pipeline.zadd(key, now,${now}:${Math.random()});apps/veritas/mobile/app/(tabs)/watch.tsx:489—likes: Math.floor(Math.random() * 50000) + 1000,apps/veritas/mobile/app/(tabs)/watch.tsx:490—comments: Math.floor(Math.random() * 5000) + 100,apps/veritas/mobile/app/(tabs)/watch.tsx:491—shares: Math.floor(Math.random() * 2000) + 50,apps/veritas/mobile/src/stores/player-store.ts:471—const j = Math.floor(Math.random() * (i + 1));apps/veritas/nlp/src/services/base/helpers.ts:195—const r = (Math.random() * 16) | 0;apps/veritas/social/src/services/instagram-stories-automation.ts:676—Math.floor(Math.random() * IG_STORY_HOOK_TEMPLATES.length)apps/veritas/social/src/services/instagram-stories-automation.ts:682—Math.floor(Math.random() * IG_STORY_CTA_TEMPLATES.length)apps/veritas/social/src/services/instagram-stories-automation.ts:1025—Math.random() < 0.5apps/veritas/video/src/services/advertising/ad-service.ts:1039—const random = Math.random() * 100;apps/veritas/video/src/services/advertising/youtube-monetization.ts:1034—currentPosition += minInterval + Math.floor(Math.random() * 120); // 2-4 minute intervalsapps/veritas/video/src/services/broll/prompt-generator.ts:361—return Math.random() > 0.5 ? 'aerial' : 'panning';apps/veritas/video/src/services/broll/prompt-generator.ts:365—return Math.random() > 0.5 ? 'slow_motion' : 'tracking';apps/veritas/video/src/services/broll/prompt-generator.ts:367—return Math.random() > 0.5 ? 'zoom' : 'static';apps/veritas/video/src/services/live-stream.ts:1095—viewerCount = Math.max(0, viewerCount + Math.floor(Math.random() * 10) - 5);apps/veritas/video/src/services/payments/premium-features.ts:750—const random = Math.random() * 100;apps/veritas/video/src/services/podcast/discussion-generator.ts:468—topic.keyPoints?.[Math.floor(Math.random() * (topic.keyPoints?.length ?? 1))] ??apps/veritas/video/src/services/podcast/personas.ts:512—return persona.verbalHabits[Math.floor(Math.random() * persona.verbalHabits.length)];apps/veritas/video/src/services/video-script.ts:390—const randomIndex = Math.floor(Math.random() * intro.length);apps/veritas/video/src/services/video-script.ts:404—const randomIndex = Math.floor(Math.random() * outro.length);apps/veritas/web/src/components/Skeleton/SkeletonNavigation.tsx:103—width={60 + Math.random() * 40}apps/veritas/web/src/components/Skeleton/SkeletonNavigation.tsx:168—width={80 + Math.random() * 60}apps/veritas/web/src/components/Skeleton/SkeletonNavigation.tsx:226—width={50 + Math.random() * 50}apps/veritas/web/src/components/Skeleton/SkeletonNavigation.tsx:249—width={60 + Math.random() * 40}apps/yemaya/api/src/middleware/rate-limit.ts:229—pipeline.zadd(fullKey, now + i,${now}-${Math.random()});apps/yemaya/api/src/middleware/rate-limit.ts:621—pipeline.zadd(fullKey, now,${now}-${Math.random()});apps/yemaya/api/src/middleware/rate-limit.ts:1236—pipeline.zadd(burstKey, Date.now(),${Date.now()}-${Math.random()});apps/yemaya/api/src/routes/auth.ts:435—suggestions.push(${cleanBase}${Math.floor(Math.random() * 100)});apps/yemaya/api/src/routes/auth.ts:436—suggestions.push(${cleanBase}_${Math.floor(Math.random() * 1000)});apps/yemaya/api/src/services/schedule-export.ts:1809—token += chars.charAt(Math.floor(Math.random() * chars.length));apps/yemaya/api/src/services/schedule-export.ts:1821—code += chars.charAt(Math.floor(Math.random() * chars.length));apps/yemaya/studio-desktop/makers/maker-dmg.ts:254—const r = (Math.random() * 16) | 0;apps/yemaya/studio-desktop/makers/maker-pkg.ts:271—const r = (Math.random() * 16) | 0;apps/yemaya/studio-desktop/src/main/file-lock.ts:155—.update(${process.pid}-${Date.now()}-${Math.random()})apps/yemaya/studio-desktop/src/main/update-analytics.ts:130—.update(Date.now().toString() + Math.random().toString())apps/yemaya/studio-web/src/lib/routeAnalytics.ts:187—isSampled = Math.random() < config.sampleRate;docs/training/examples/comfyui-examples.ts:110—seed: Math.floor(Math.random() * 2147483647),libs/aglaea/events/src/consumer.ts:23—const r = (Math.random() * 16) | 0;libs/aglaea/events/src/helpers.ts:23—const r = (Math.random() * 16) | 0;libs/aglaea/inspiration-feed/src/feed-algorithms.ts:457—const rng = seed !== undefined ? createSeededRandom(seed) : Math.random;libs/aglaea/inspiration-feed/src/implementation.ts:492—Math.random() < preferences.discoveryOpenness * 0.3);libs/aglaea/personal-shopper-ai/src/response-generator.ts:1361—score += Math.random() * 0.5;libs/aglaea/testing/src/chaos.ts:52—this._rng = Math.random;libs/aglaea/virtual-tryon-accessories/src/material-rendering.ts:696—size: 0.03 + Math.random() * 0.07 * (1 + dispersionFactor * 5),libs/aglaea/virtual-tryon-fashion/src/garment-visualization.ts:800—const depth = (1 - stiffness) * 0.5 * (0.5 + Math.random() * 0.5);libs/airmid/docking/src/molecular-docking.ts:793—indices.add(Math.floor(Math.random() * atoms.length));libs/airmid/docking/src/qsar-modeling.ts:633—const idx = Math.floor(Math.random() * nSamples);libs/airmid/docking/src/qsar-modeling.ts:815—const j = i + Math.floor(Math.random() * (n - i));libs/airmid/docking/src/qsar-modeling.ts:958—const j = Math.floor(Math.random() * (i + 1));libs/airmid/ml/src/explainable-ai.ts:226—const j = Math.floor(Math.random() * (i + 1));libs/airmid/ml/src/graph-neural-networks.ts:611—const vec = Array.from({ length: dim }, () => (Math.random() * 2 - 1) * scale);libs/airmid/ml/src/graph-neural-networks.ts:695—const corruptHead = Math.random() < 0.5;libs/aja/avatar-preview-ui/src/hooks/useABTest.ts:157—const j = Math.floor(Math.random() * (i + 1));libs/aja/depth-sensing/src/sensor-driver.ts:356—depthData[idx] = Math.round(depth + Math.random() * 10);libs/aja/depth-sensing/src/sensor-driver.ts:359—depthData[idx] = Math.round(3.0 / depthScale + Math.random() * 50);libs/aja/depth-sensing/src/sensor-driver.ts:393—colorData[i] = 128 + Math.floor(Math.random() * 64); // Rlibs/aja/depth-sensing/src/sensor-driver.ts:394—colorData[i + 1] = 100 + Math.floor(Math.random() * 64); // Glibs/aja/depth-sensing/src/sensor-driver.ts:395—colorData[i + 2] = 80 + Math.floor(Math.random() * 64); // Blibs/aja/distributed-workers/src/fault-tolerance.ts:221—if (Math.random() < 0.01) {libs/aja/fitness-animation/src/secondary/secondary-motion.ts:440—hairLength * (0.8 + Math.random() * 0.4),libs/aja/fitness-animation/src/secondary/secondary-motion.ts:444—stiffness: 0.6 + Math.random() * 0.3,libs/aja/fitness-animation/src/secondary/secondary-motion.ts:445—damping: 0.92 + Math.random() * 0.05,libs/aja/fitness-animation/src/secondary/secondary-motion.ts:446—windInfluence: 0.8 + Math.random() * 0.4,libs/aja/human-mesh-recovery/src/smpl-recovery.ts:794—const jointConfidences = mesh.joints.map(() => 0.9 + Math.random() * 0.1);libs/aja/human-mesh-recovery/src/smpl-recovery.ts:969—const jointConfidences = mesh.joints.map(() => 0.88 + Math.random() * 0.12);libs/aja/human-mesh-recovery/src/smpl-recovery.ts:1179—jointConfidences: mesh.joints.map(() => 0.85 + Math.random() * 0.15),libs/aja/human-mesh-recovery/src/smpl-recovery.ts:1281—expression: new Array(10).fill(0).map(() => Math.random() * 0.3),libs/aja/human-mesh-recovery/src/smpl-recovery.ts:1352—jointConfidences: mesh.joints.map(() => 0.9 + Math.random() * 0.1),libs/aja/human-mesh-recovery/src/smpl-recovery.ts:1508—jointConfidences: mesh.joints.map(() => 0.92 + Math.random() * 0.08),libs/aja/human-mesh-recovery/src/smpl-recovery.ts:1700—jointConfidences: mesh.joints.map(() => 0.88 + Math.random() * 0.12),libs/aja/motion-formats/src/fbx.ts:1337—id: String(Math.random()),libs/aja/motion-formats/src/fbx.ts:1467—id: String(Math.random()),libs/aja/motion-validation/src/edge-case-testing.ts:210—shouldOcclude = Math.random() < (options.probability ?? 0.3);libs/aja/motion-validation/src/edge-case-testing.ts:441—gapStart = Math.floor(Math.random() * (frameCount - options.frameCount));libs/aja/motion-validation/src/edge-case-testing.ts:524—location = startFrame + Math.floor(Math.random() * availableFrames);libs/aja/motion-validation/src/human-evaluation.ts:93—let currentSeed = seed ?? Math.random() * 10000;libs/aja/multi-view-reconstruction/src/calibration.ts:530—Math.max(2, contours.length || Math.floor(Math.random() * 8) + 2)libs/aja/multi-view-reconstruction/src/calibration.ts:533—const cx = 100 + i * 100 + Math.random() * 50;libs/aja/multi-view-reconstruction/src/calibration.ts:534—const cy = 100 + (i % 2) * 150 + Math.random() * 50;libs/aja/multi-view-reconstruction/src/calibration.ts:1716—return cameras.map(() => Math.random() * 2);libs/aja/multi-view-reconstruction/src/calibration.ts:1760—const idx = Math.floor(Math.random() * max);libs/aja/multi-view-reconstruction/src/triangulation.ts:1042—const idx = Math.floor(Math.random() * max);libs/aja/neural-retargeting/src/networks/transformer.ts:640—if (Math.random() < maskRatio) {libs/aja/pose-lifting/src/camera-estimation.ts:642—const idx = Math.floor(Math.random() * max);libs/aphrodite/advanced-music/src/generative-ambient-types.ts:617—randomSource: () => Math.random(),libs/aphrodite/advanced-music/src/world-music/world-music-types.ts:1003—randomSource: () => Math.random(),libs/aphrodite/agent-platform/src/data/pipeline.ts:449—value: Math.round(Math.random() * 1000) / 10,libs/aphrodite/agent-platform/src/monitoring/training-pipeline.ts:416—this._rng = config.splitSeed !== undefined ? createMulberry32(config.splitSeed) : Math.random;libs/aphrodite/agent-platform/src/monitoring/training-pipeline.ts:792—customMetrics.set(name, accuracy * (0.8 + Math.random() * 0.2));libs/aphrodite/agent-platform/src/testing/simulation-framework.ts:389—if (effectiveFailureRate > 0 && Math.random() < effectiveFailureRate) {libs/aphrodite/agent-platform/src/testing/simulation-framework.ts:426—if (effectiveFailureRate > 0 && Math.random() < effectiveFailureRate) {libs/aphrodite/ai-assistant/src/afk-responder.ts:544—if (Math.random() > 0.7) {libs/aphrodite/ai-assistant/src/afk-responder.ts:554—Math.random() > 0.5libs/aphrodite/ai-assistant/src/afk-responder.ts:733—return min + Math.random() * (max - min);libs/aphrodite/ai-assistant/src/question-answerer.ts:761—if (style.catchphrases.length > 0 && Math.random() < 0.2) {libs/aphrodite/ai-assistant/src/question-answerer.ts:762—const catchphrase = style.catchphrases[Math.floor(Math.random() * style.catchphrases.length)];libs/aphrodite/ai-assistant/src/question-answerer.ts:807—if (Math.random() < 0.3) {libs/aphrodite/ai-assistant/src/question-answerer.ts:816—if (viewer.displayName && Math.random() < 0.4) {libs/aphrodite/ai-assistant/src/question-answerer.ts:818—if (Math.random() < 0.5) {libs/aphrodite/ai-music/src/variation.ts:503—const offset = Math.random() > 0.5 ? 4 : 3;libs/aphrodite/analytics/src/events/index.ts:137—if (this.config.samplingRate < 1.0 && Math.random() > this.config.samplingRate) {libs/aphrodite/animation-triggers/src/trigger-evaluator.ts:69—return Math.random();libs/aphrodite/animation-triggers/src/trigger-evaluator.ts:275—return Math.random() < chance;libs/aphrodite/ar-overlays/src/index.ts:354—quality: 0.8 + Math.random() * 0.2,libs/aphrodite/arousal-engine/src/desire-types.ts:456—randomSource: () => Math.random(),libs/aphrodite/arousal-engine/src/simulator-types.ts:744—randomSource: () => Math.random(),libs/aphrodite/auteur-camera/src/auteur-camera.ts:1058—if (Math.random() < this.config.shotChangeProbability) {libs/aphrodite/auteur-camera/src/montage.ts:141—let r = Math.random() * totalWeight;libs/aphrodite/auteur-camera/src/montage.ts:574—let r = Math.random() * totalWeight;libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:426—Math.floor(Math.random() * 16777215)libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:434—height: 0.85 + Math.random() * 0.3,libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:435—shoulderWidth: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:436—hipWidth: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:437—chestSize: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:438—waistSize: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:439—legLength: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:440—armLength: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:441—muscleDefinition: Math.random(),libs/aphrodite/avatar-customization-ui/src/components/AvatarCustomizationPanel.tsx:442—bodyFat: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:549—Math.floor(Math.random() * 16777215)libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:557—height: 0.85 + Math.random() * 0.3,libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:558—shoulderWidth: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:559—hipWidth: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:560—chestSize: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:561—waistSize: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:562—legLength: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:563—armLength: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:564—muscleDefinition: Math.random(),libs/aphrodite/avatar-customization-ui/src/hooks/useAvatarCustomization.ts:565—bodyFat: Math.random(),libs/aphrodite/avatar-physics/src/wind-system.ts:243—return baseInterval * (0.5 + Math.random());libs/aphrodite/biometric-engine/src/bluetooth/bluetooth.ts:416—Math.random() < this.dataConfig.disconnectProbabilitylibs/aphrodite/biometric-engine/src/gsr/gsr.ts:635—const interval = -meanInterval * Math.log(Math.max(0.001, Math.random()));libs/aphrodite/biometric-engine/src/gsr/gsr.ts:683—const amplitude = this.config.scrAmplitude * (0.5 + Math.random()); // Random amplitude variationlibs/aphrodite/biometric-engine/src/mediapipe/mediapipe.ts:1083—visibility: 0.95 + Math.random() * 0.05,libs/aphrodite/biometric-engine/src/microphone/microphone.ts:870—samples.push((Math.random() * 2 - 1) * amplitude);libs/aphrodite/biometric-engine/src/microphone/microphone.ts:881—return samples.map((s) => s + (Math.random() * 2 - 1) * clampedLevel);libs/aphrodite/biometric-engine/src/websocket/websocket.ts:742—Math.random() < this.dataConfig.disconnectProbabilitylibs/aphrodite/biometric-engine/src/websocket/websocket.ts:835—if (this.dataConfig.parseErrorRate > 0 && Math.random() < this.dataConfig.parseErrorRate) {libs/aphrodite/biometric-engine/src/websocket/websocket.ts:859—quality: 0.95 - Math.random() * 0.1,libs/aphrodite/body-art/src/education/body-art-education.ts:315—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/body-art/src/patterns/custom-designer.ts:630—const seed = Math.floor(Math.random() * 10000);libs/aphrodite/ceremony/src/anointing/anointing-ritual.ts:1947—const size = sizeRange[0] + Math.random() * (sizeRange[1] - sizeRange[0]);libs/aphrodite/ceremony/src/fire/fire-capture.ts:366—flickerRate: 0.1 + Math.random() * 0.2,libs/aphrodite/chat-entertainment/src/minigames.ts:241—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/chat-entertainment/src/minigames.ts:272—revealed.add(Math.floor(Math.random() * chars.length));libs/aphrodite/chat-entertainment/src/minigames.ts:732—const target = Math.floor(Math.random() * (max - min + 1)) + min;libs/aphrodite/chat-entertainment/src/minigames.ts:746—const target = Math.floor(Math.random() * (max - min + 1)) + min;libs/aphrodite/chat-entertainment/src/minigames.ts:767—a = Math.floor(Math.random() * maxNum) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:768—b = Math.floor(Math.random() * maxNum) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:782—a = Math.floor(Math.random() * 12) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:783—b = Math.floor(Math.random() * 12) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:789—result = Math.floor(Math.random() * 12) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:790—b = Math.floor(Math.random() * 12) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:815—const type = types[Math.floor(Math.random() * (difficulty === 'hard' ? 3 : 2))];libs/aphrodite/chat-entertainment/src/minigames.ts:822—const start = Math.floor(Math.random() * 10) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:823—const diff = Math.floor(Math.random() * 5) + 1;libs/aphrodite/chat-entertainment/src/minigames.ts:830—const start = Math.floor(Math.random() * 3) + 2;libs/aphrodite/chat-entertainment/src/trivia.ts:440—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/chat-entertainment/src/trivia.ts:769—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/cloud-recording/src/index.ts:535—this.state.metrics.cpuUsage = 20 + Math.random() * 30;libs/aphrodite/cloud-recording/src/index.ts:536—this.state.metrics.memoryUsage = 500 + Math.random() * 200;libs/aphrodite/cloud-recording/src/index.ts:953—tierStatus.speed =${(1 + Math.random()).toFixed(1)}x;libs/aphrodite/cloud-recording/src/index.ts:968—const outputSize = Math.floor(Math.random() * 500000000) + 100000000;libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:411—? Math.floor(Math.random() * (minAge - 13)) + 13libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:412—: Math.floor(Math.random() * 52) + minAge;libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:415—const birthMonth = String(Math.floor(Math.random() * 12) + 1).padStart(2, '0');libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:416—const birthDay = String(Math.floor(Math.random() * 28) + 1).padStart(2, '0');libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:459—const latency = Math.round(latencyBase * multiplier * (0.8 + Math.random() * 0.4));libs/aphrodite/compliance/src/testing/compliance-test-framework.ts:593—recordCount: Math.floor(Math.random() * 1000) + 1,libs/aphrodite/content-tagging/src/content-tagger.ts:140—if (Math.random() > 0.3) {libs/aphrodite/content-tagging/src/similarity-analyzer.ts:439—createdAt: Date.now() - Math.random() * 86400000,libs/aphrodite/content-tagging/src/similarity-analyzer.ts:448—viewCount: Math.floor(Math.random() * 10000),libs/aphrodite/content-tagging/src/similarity-analyzer.ts:449—duration: Math.floor(Math.random() * 14400),libs/aphrodite/content-tagging/src/tag-suggester.ts:71—usageCount: Math.floor(Math.random() * 10000) + 1000,libs/aphrodite/content-tagging/src/tag-suggester.ts:112—usageCount: Math.floor(Math.random() * 5000) + 500,libs/aphrodite/content-tagging/src/tag-suggester.ts:146—usageCount: Math.floor(Math.random() * 8000) + 1000,libs/aphrodite/content-tagging/src/tag-suggester.ts:177—usageCount: Math.floor(Math.random() * 6000) + 800,libs/aphrodite/content-tagging/src/tag-suggester.ts:497—if (Math.random() > 0.5) {libs/aphrodite/content-tagging/src/tag-suggester.ts:507—if (Math.random() > 0.7) {libs/aphrodite/crowd-control/src/collaborative/collaborative.ts:255—let rand = Math.random() * total;libs/aphrodite/crowd-control/src/collaborative/collaborative.ts:733—const isCritical = Math.random() < CRITICAL_HIT_CHANCE;libs/aphrodite/crypto-payments/src/index.ts:247—change24h: Math.random() * 10 - 5, // Mock 24h changelibs/aphrodite/crypto-payments/src/index.ts:1162—'0x' + Array.from({ length: 40 }, () => Math.floor(Math.random() * 16).toString(16)).join('');libs/aphrodite/crypto-payments/src/index.ts:1189—'0x' + Array.from({ length: 40 }, () => Math.floor(Math.random() * 16).toString(16)).join('');libs/aphrodite/crypto-payments/src/index.ts:1404—Math.floor(Math.random() * 10 * Math.pow(10, cryptoConfig.decimals))libs/aphrodite/device-protocols/src/commands/index.ts:264—const randomIntensity = Math.round(Math.random() * intensity);libs/aphrodite/device-reaction-engine/src/choreography/choreography.ts:470—const rng = seed !== undefined ? seededRandom(seed) : () => Math.random();libs/aphrodite/drone-integration/src/reconstruction/reconstruction.ts:1100—const idx = Math.floor(Math.random() * matches.length);libs/aphrodite/drone-integration/src/reconstruction/reconstruction.ts:2301—gradients[s] = totalLoss * (0.0001 + Math.random() * 0.0001);libs/aphrodite/drone-integration/src/swarm-display/swarm-display.ts:692—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/eye-tracking/src/index.ts:432—openness: 0.9 + Math.random() * 0.1,libs/aphrodite/eye-tracking/src/index.ts:439—openness: 0.9 + Math.random() * 0.1,libs/aphrodite/face-identity/src/testing/overlay-ab-testing.ts:316—const rng = seed !== undefined ? seededRandom(seed) : Math.random();libs/aphrodite/game-accessibility/src/audio/audio.ts:977—const lane = opts.lanes ? Math.floor(Math.random() * opts.lanes) : 0;libs/aphrodite/game-audio/src/sfx/sfx-system.ts:202—return min + Math.random() * (max - min);libs/aphrodite/game-audio/src/sfx/sfx-system.ts:306—const index = Math.floor(Math.random() * candidates.length);libs/aphrodite/game-event-bus/src/debug/event-debugger.ts:481—const random = Math.floor(Math.random() * 0xffff)libs/aphrodite/game-input/src/viewer-input/viewer-input-router.ts:386—const index = Math.floor(Math.random() * queue.length);libs/aphrodite/game-monetization/src/collectibles/collectibles.ts:559—if (Math.random() > chance) return null;libs/aphrodite/game-monetization/src/collectibles/collectibles.ts:586—let roll = Math.random() * totalWeight;libs/aphrodite/game-networking/src/broadcast/event-broadcaster.ts:249—const rand = Math.floor(Math.random() * 0xffffffff)libs/aphrodite/game-networking/src/matchmaking/matchmaking.ts:616—bytes[i] = Math.floor(Math.random() * 256)libs/aphrodite/game-networking/src/matchmaking/matchmaking.ts:633—bytes[i] = Math.floor(Math.random() * 256)libs/aphrodite/game-networking/src/matchmaking/matchmaking.ts:1045—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/game-networking/src/server/game-server.ts:198—bytes[i] = Math.floor(Math.random() * 256)libs/aphrodite/game-networking/src/server/game-server.ts:213—bytes[i] = Math.floor(Math.random() * 256)libs/aphrodite/game-networking/src/spectator/game-spectator.ts:570—random[i] = Math.floor(Math.random() * 256)libs/aphrodite/game-openworld/src/music/music.ts:366—velocity: phaseTheme.intensity * (0.7 + Math.random() * 0.3),libs/aphrodite/game-platformer/src/boss/boss.ts:266—const radius = 3 + Math.random() * 2;libs/aphrodite/game-platformer/src/boss/boss.ts:669—private rng: RngFn = Math.random;libs/aphrodite/game-platformer/src/collectible/collectible.ts:212—bobOffset: Math.random() * Math.PI * 2,libs/aphrodite/game-platformer/src/enemy/enemy.ts:326—const offset = (Math.random() > 0.5 ? 1 : -1) * (1.5 + Math.random() * 2);libs/aphrodite/game-rhythm/src/visuals/visuals.ts:329—const spread = 0.15 + Math.random() * 0.2;libs/aphrodite/game-rhythm/src/visuals/visuals.ts:334—0.5 + Math.random() * 0.5,libs/aphrodite/game-rhythm/src/visuals/visuals.ts:335—300 + Math.random() * 200,libs/aphrodite/game-rhythm/src/visuals/visuals.ts:337—r: 200 + Math.floor(Math.random() * 55),libs/aphrodite/game-rhythm/src/visuals/visuals.ts:338—g: 200 + Math.floor(Math.random() * 55),libs/aphrodite/game-rhythm/src/visuals/visuals.ts:339—b: 200 + Math.floor(Math.random() * 55),libs/aphrodite/game-rhythm/src/visuals/visuals.ts:347—speed: 0.3 + Math.random() * 0.7,libs/aphrodite/game-rpg/src/combat/combat.ts:224—const roll = Math.random();libs/aphrodite/game-rpg/src/combat/combat.ts:243—return Math.random() < hitChance;libs/aphrodite/game-rpg/src/combat/combat.ts:551—return Math.random() < chance;libs/aphrodite/game-rpg/src/combat/combat.ts:1027—const idx = Math.floor(Math.random() * aliveEnemies.length);libs/aphrodite/game-rpg/src/combat/combat.ts:1192—return Math.random() < fleeChance;libs/aphrodite/game-rpg/src/dialogue/dialogue.ts:441—let roll = Math.random() * totalWeight;libs/aphrodite/game-rpg/src/equipment/equipment.ts:747—let roll = Math.random() * totalWeight;libs/aphrodite/game-rpg/src/equipment/equipment.ts:754—Math.floor(Math.random() * (entry.maxQuantity - entry.minQuantity + 1));libs/aphrodite/game-rpg/src/integration/integration.ts:514—const intensity = config.burnIntensity * (0.7 + Math.random() * 0.3);libs/aphrodite/game-rpg/src/monster/monster.ts:249—const idx = Math.floor(Math.random() * alivePlayers.length);libs/aphrodite/game-rpg/src/monster/monster.ts:303—const idx = Math.floor(Math.random() * all.length);libs/aphrodite/game-rpg/src/monster/monster.ts:500—const idx = Math.floor(Math.random() * available.length);libs/aphrodite/game-rpg/src/monster/monster.ts:614—const count = encounterConfig.minMonsters + Math.floor(Math.random() * range);libs/aphrodite/game-rpg/src/monster/monster.ts:617—const hasElite = Math.random() < encounterConfig.eliteChance;libs/aphrodite/game-rpg/src/monster/monster.ts:618—const hasMiniboss = Math.random() < encounterConfig.minibossChance;libs/aphrodite/game-rpg/src/monster/monster.ts:625—const templateIdx = Math.floor(Math.random() * eligible.length);libs/aphrodite/game-rpg/src/monster/monster.ts:647—Math.floor(Math.random() * (encounterConfig.levelVariance * 2 + 1)) -libs/aphrodite/game-rpg/src/monster/monster.ts:721—return Math.random() > noEncounterChance;libs/aphrodite/game-rpg/src/monster/monster.ts:781—if (Math.random() < adjustedChance) {libs/aphrodite/game-rpg/src/monster/monster.ts:785—const quantity = entry.minQuantity + Math.floor(Math.random() * range);libs/aphrodite/haptics/src/index.ts:156—return Math.random() * 2 - 1;libs/aphrodite/highlight-clipping/src/index.ts:786—if (Math.random() > 0.7) {libs/aphrodite/highlight-clipping/src/index.ts:789—value: 0.3 + Math.random() * 0.7,libs/aphrodite/highlight-clipping/src/index.ts:791—duration: 2 + Math.random() * 5,libs/aphrodite/lilith-game-bridge/src/lilith-game-bridge.ts:1120—const discoveryRoll = Math.random();libs/aphrodite/lilith-game-bridge/src/lilith-game-bridge.ts:1169—const rarity = Math.min(1, rarityBase + Math.random() * 0.3);libs/aphrodite/literary-engine/src/calligraphy.ts:401—const radius = displayConfig.spread * (0.5 + Math.random() * 0.5);libs/aphrodite/literary-engine/src/calligraphy.ts:413—opacity: 0.6 + Math.random() * 0.4,libs/aphrodite/literary-engine/src/calligraphy.ts:414—scale: 0.8 + Math.random() * 0.4,libs/aphrodite/literary-engine/src/calligraphy.ts:437—y: displayConfig.gravity * 0.5 + Math.random() * 0.5,libs/aphrodite/literary-engine/src/calligraphy.ts:442—weight: 0.8 + Math.random() * 0.4,libs/aphrodite/literary-engine/src/calligraphy.ts:454—const scatterAngle = Math.random() * Math.PI * 2;libs/aphrodite/literary-engine/src/calligraphy.ts:455—const scatterDist = displayConfig.spread * (1 + Math.random());libs/aphrodite/literary-engine/src/collaborative.ts:409—x = Math.random() * width;libs/aphrodite/literary-engine/src/collaborative.ts:410—y = Math.random() * height;libs/aphrodite/literary-engine/src/collaborative.ts:631—x: Math.random() * 80 + 10,libs/aphrodite/literary-engine/src/collaborative.ts:632—y: Math.random() * 80 + 10,libs/aphrodite/literary-engine/src/collaborative.ts:633—fontSize: 14 + Math.random() * 10,libs/aphrodite/literary-engine/src/collaborative.ts:634—color:hsl(${Math.floor(Math.random() * 360)}, 60%, 70%),libs/aphrodite/literary-engine/src/literary-engine.ts:1311—let r = Math.random() * totalWeight;libs/aphrodite/literary-engine/src/text-env.ts:441—const speed = 0.3 + Math.random() * 0.7;libs/aphrodite/literary-engine/src/text-env.ts:447—y: (Math.random() - 0.3) * speed,libs/aphrodite/literary-engine/src/text-env.ts:452—size: 12 + Math.random() * 8,libs/aphrodite/literary-engine/src/text-env.ts:512—y: 0.5 + Math.random() * roomSize * 0.3,libs/aphrodite/literary-engine/src/text-env.ts:517—y: Math.random() * 360,libs/aphrodite/maya-bridge/src/maya-bridge.ts:225—outputSizeBytes: Math.floor(Math.random() * 10_000_000) + 100_000,libs/aphrodite/meditation/src/body-celebration/celebration-engine.ts:491—const idx = Math.floor(Math.random() * BODY_POSITIVE_PHRASES.length);libs/aphrodite/meditation/src/body-celebration/celebration-engine.ts:495—const idx = Math.floor(Math.random() * filtered.length);libs/aphrodite/meditation/src/body-positive/body-positive.ts:236—const idx = Math.floor(Math.random() * filtered.length);libs/aphrodite/meditation/src/body-positive/body-positive.ts:241—const idx = Math.floor(Math.random() * BPOS_TEXT_AFFIRMATIONS.length);libs/aphrodite/meditation/src/body-positive/body-positive.ts:280—Math.floor(Math.random() * BPOS_MODIFICATION_CELEBRATIONS.length)libs/aphrodite/meditation/src/body-positive/body-positive.ts:286—Math.floor(Math.random() * BPOS_MODIFICATION_CELEBRATIONS.length)libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:211—const angle = Math.random() * Math.PI * 2;libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:212—const speed = 0.02 + Math.random() * 0.08;libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:213—const colorIdx = Math.floor(Math.random() * this.config.colors.length);libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:219—size: this.config.minSize + Math.random() * (this.config.maxSize - this.config.minSize),libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:220—opacity: 0.6 + Math.random() * 0.4,libs/aphrodite/meditation/src/breath-visualization/breath-viz.ts:226—lifetime: 2 + Math.random() * 4,libs/aphrodite/meditation/src/voice-guide/voice-guide.ts:1205—const simulatedLatencyMs = 50 + Math.random() * 150;libs/aphrodite/meditation/src/voice-guide/voice-guide.ts:1303—const latencyMs = 30 + Math.random() * 100;libs/aphrodite/multi-performer/src/biometrics/group-effects.ts:616—y: 50 + Math.random() * 100,libs/aphrodite/multi-performer/src/scenes/jungle-biodiversity.ts:369—const ft = type ?? selectFloraType(Math.random());libs/aphrodite/multi-performer/src/scenes/jungle-biodiversity.ts:375—scale: 0.5 + Math.random() * 1.5,libs/aphrodite/multi-performer/src/scenes/jungle-biodiversity.ts:378—ft === FloraType.BIOLUMINESCENT_MUSHROOM ? 0.8 + Math.random() * 0.2 : 0,libs/aphrodite/multi-source/src/index.ts:2359—const delay = min + Math.random() * (max - min);libs/aphrodite/multi-source/src/index.ts:2421—const randomIndex = Math.floor(Math.random() * availableSources.length);libs/aphrodite/multi-source/src/test-setup.ts:370—array[i] = Math.random() * 0.2 - 0.1;libs/aphrodite/neuro-design/src/dopamine-schedule.ts:408—if (Math.random() > config.anticipationProbability) return;libs/aphrodite/neuro-design/src/reward-system.ts:395—/** Simple LCG for deterministic "random" numbers without Math.random(). */libs/aphrodite/nft-integration/src/index.ts:1193—result.passed = Math.random() > 0.7;libs/aphrodite/notification-intelligence/src/content-personalizer.ts:489—let random = Math.random() * totalWeight;libs/aphrodite/notification-intelligence/src/timing-optimizer.ts:588—if (Math.random() < this.config.explorationRate) {libs/aphrodite/notification-intelligence/src/timing-optimizer.ts:802—const randomOffset = Math.floor(Math.random() * 120) - 60; // -60 to +60 minuteslibs/aphrodite/performer-presence/src/artistic.ts:962—const usedSize = size ?? 10 + Math.random() * 15;libs/aphrodite/performer-presence/src/nature.ts:890—ripplePhase: Math.random() * Math.PI * 2,libs/aphrodite/production/src/emergency/emergency-control.ts:517—responseTimeMs: Math.floor(Math.random() * 80) + 10, // simulated sub-100mslibs/aphrodite/recommendations/src/realtime.ts:749—if (Math.random() > this.config.explorationRate) return;libs/aphrodite/recommendations/src/realtime.ts:756—const randomIndex = minPosition + Math.floor(Math.random() * (items.length - minPosition));libs/aphrodite/recommendations/src/realtime.ts:997—if (Math.random() < this.config.explorationRate && liveBroadcasters.length > 5) {libs/aphrodite/recommendations/src/realtime.ts:1000—liveBroadcasters.length * 0.7 + Math.random() * liveBroadcasters.length * 0.3libs/aphrodite/recommendations/src/realtime.ts:1002—const highIdx = Math.floor(Math.random() * 3);libs/aphrodite/recommendations/src/test-helpers.ts:304—const timestamp = new Date(Date.now() - Math.random() * daysAgo * 24 * 60 * 60 * 1000);libs/aphrodite/recommendations/src/test-helpers.ts:312—duration: type === 'watch_duration' ? Math.floor(Math.random() * 60 * 60) : undefined,libs/aphrodite/recommendations/src/test-helpers.ts:313—amount: type === 'tip' ? Math.floor(Math.random() * 100) + 10 : undefined,libs/aphrodite/revenue-sharing/src/index.ts:53—code += chars.charAt(Math.floor(Math.random() * chars.length));libs/aphrodite/sacred-architecture/src/destruction-rebirth.ts:376—const speed = preset.spreadForce * (0.5 + Math.random() * 0.5);libs/aphrodite/sacred-architecture/src/destruction-rebirth.ts:381—preset.particleMinSize + Math.random() * (preset.particleMaxSize - preset.particleMinSize);libs/aphrodite/sacred-architecture/src/destruction-rebirth.ts:392—opacity: 0.8 + Math.random() * 0.2,libs/aphrodite/sacred-architecture/src/destruction-rebirth.ts:393—rotation: Math.random() * 360,libs/aphrodite/sacred-architecture/src/japanese-space.ts:443—const idx = Math.floor(Math.random() * types.length);libs/aphrodite/sacred-dance/src/devices/dance-device-profiles.ts:491—durationMs: Math.round(Math.random() * 5000 + 1000),libs/aphrodite/scene-fantasy/src/fairy-forest/fairy-forest.ts:1131—y: 0.5 + Math.random() * 1.0,libs/aphrodite/scene-fantasy/src/temple/temple.ts:409—const seed = Date.now() * 0.001 + Math.random() * 1000;libs/aphrodite/scene-fantasy/src/temple/temple.ts:519—if (Math.random() < fractional) {libs/aphrodite/scene-goddess/src/ocean/ocean.ts:407—const dist = 50 + Math.random() * 200;libs/aphrodite/scene-goddess/src/ocean/ocean.ts:459—Math.random() *libs/aphrodite/scene-goddess/src/ocean/ocean.ts:2089—const intensity = 0.8 + Math.random() * 0.2;libs/aphrodite/scene-nature/src/storm/storm.ts:876—const seed = Date.now() * 0.001 + Math.random() * 1000;libs/aphrodite/scene-nature/src/storm/storm.ts:980—if (Math.random() < fractional) {libs/aphrodite/scene-nature/src/underwater/underwater.ts:1125—const seed = Date.now() * 0.001 + Math.random() * 100;libs/aphrodite/scene-nature/src/underwater/underwater.ts:1231—if (Math.random() < fractionalEmit) {libs/aphrodite/scene-nature/src/volcanic/volcanic.ts:953—const seed = Date.now() * 0.001 + Math.random() * 100;libs/aphrodite/scene-nature/src/volcanic/volcanic.ts:1876—if (Math.random() < fractionalSpawn && this.lavaPools.length > 0) {libs/aphrodite/scene-nature/src/volcanic/volcanic.ts:1877—const poolIdx = Math.floor(Math.random() * this.lavaPools.length);libs/aphrodite/scene-nature/src/zen/zen.ts:327—rotation: Math.random() * Math.PI * 2,libs/aphrodite/spatial-audio/src/index.ts:1389—const noise = (Math.random() * 2 - 1) * config.density;libs/aphrodite/stream-upscaling/src/index.ts:859—const variance = Math.random() * 7_000_000; // 0-7 Mbps variancelibs/aphrodite/stream-upscaling/src/index.ts:888—packetLossPercent: Math.random() * 2, // Simulatedlibs/aphrodite/stream-upscaling/src/index.ts:889—rttMs: 20 + Math.random() * 30, // Simulated 20-50mslibs/aphrodite/stream-upscaling/src/index.ts:890—jitterMs: Math.random() * 10, // Simulatedlibs/aphrodite/stream-watermarking/src/viewer-watermark.ts:177—spatialSeed: Math.floor(Math.random() * 0xffffffff),libs/aphrodite/symbol-engine/src/dream-logic.ts:19—if (seed === undefined) return () => Math.random();libs/aphrodite/symbol-engine/src/tarot-overlay.ts:367—const edgeDist = 0.5 + Math.random() * 0.5;libs/aphrodite/symbol-engine/src/tarot-overlay.ts:371—const maxLifetime = 1 + Math.random() * 2;libs/aphrodite/symbol-engine/src/tarot-overlay.ts:375—x: Math.cos(angle) * speed * (0.5 + Math.random() * 0.5),libs/aphrodite/symbol-engine/src/tarot-overlay.ts:376—y: Math.sin(angle) * speed * (0.5 + Math.random() * 0.5) - speed * 0.3,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:378—size: 2 + Math.random() * 4,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:379—opacity: 0.8 + Math.random() * 0.2,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:381—0.85 + Math.random() * 0.15,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:382—0.7 + Math.random() * 0.2,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:383—0.2 + Math.random() * 0.3,libs/aphrodite/symbol-engine/src/tarot-overlay.ts:579—const j = Math.floor(Math.random() * (i + 1));libs/aphrodite/symbol-engine/src/tarot-overlay.ts:638—Math.random() < config.reversalProbabilitylibs/aphrodite/symbol-engine/src/tarot.ts:783—return () => Math.random();libs/aphrodite/technical-direction/src/ai-camera/ai-camera-direction.ts:443—const latencyMs = Math.round(Math.random() * this.config.maxDecisionLatencyMs);libs/aphrodite/tip-acknowledgment/src/thank-you-messages.ts:822—let random = Math.random() * totalWeight;libs/aphrodite/tip-acknowledgment/src/thank-you-messages.ts:847—return Math.random() < 0.1;libs/aphrodite/tip-acknowledgment/src/thank-you-messages.ts:849—return Math.random() < 0.3;libs/aphrodite/tip-acknowledgment/src/thank-you-messages.ts:851—return Math.random() < 0.6;libs/aphrodite/tip-effects/src/index.ts:154—return min + Math.random() * (max - min);libs/aphrodite/tip-effects/src/index.ts:346—rotation: Math.random() * Math.PI * 2,libs/aphrodite/tip-effects/src/index.ts:544—if (Math.random() < finaleProgress * this.config.finaleIntensity * deltaTime * 5) {libs/aphrodite/tip-effects/src/index.ts:597—crackleEffect: Math.random() > 0.7,libs/aphrodite/tip-effects/src/index.ts:598—flashEffect: Math.random() > 0.5,libs/aphrodite/tip-effects/src/index.ts:711—const willowAngle = Math.random() * Math.PI * 2;libs/aphrodite/tip-effects/src/index.ts:712—const willowElevation = Math.random() * Math.PI * 0.4 + 0.1;libs/aphrodite/tip-effects/src/index.ts:724—const theta = Math.acos(2 * Math.random() - 1);libs/aphrodite/tip-effects/src/index.ts:725—const speed = config.burstRadius * (3 + Math.random() * 2);libs/aphrodite/tip-effects/src/index.ts:746—maxLifetime: Math.max(0.1, config.fadeTime) + 2 + Math.random() * 0.5,libs/aphrodite/tip-effects/src/index.ts:806—if (shell.config.crackleEffect && Math.random() < 0.01) {libs/aphrodite/tip-effects/src/index.ts:2018—crackleEffect: Math.random() > 0.6,libs/aphrodite/tip-effects/src/index.ts:2019—flashEffect: Math.random() > 0.5,libs/aphrodite/tip-effects/src/index.ts:2022—launchTime: i * 0.5 + Math.random() * 0.3,libs/aphrodite/vfx-particles/src/physics.ts:1559—const r = Math.random() * flockConfig.boundaryRadius * 0.5;libs/aphrodite/virtual-gifts/src/index.ts:158—x: min.x + Math.random() * (max.x - min.x),libs/aphrodite/virtual-gifts/src/index.ts:159—y: min.y + Math.random() * (max.y - min.y),libs/aphrodite/virtual-gifts/src/index.ts:160—z: min.z + Math.random() * (max.z - min.z),libs/aphrodite/virtual-gifts/src/index.ts:735—Math.floor(Math.random() * this.config.giftDefinitionIds.length)libs/aphrodite/virtual-gifts/src/index.ts:749—rotation: Math.random() * Math.PI * 2,libs/aphrodite/virtual-gifts/src/index.ts:1049—y: 1 + Math.random() * 2,libs/aphrodite/virtual-gifts/src/index.ts:1050—z: 1 + Math.random() * 2,libs/aphrodite/vod-chaptering/src/index.ts:273—const frameDiff = Math.random();libs/aphrodite/vod-chaptering/src/index.ts:279—histogramDifference: Math.random() * 0.5,libs/aphrodite/vod-chaptering/src/index.ts:280—motionMagnitude: Math.random(),libs/aphrodite/vod-chaptering/src/index.ts:300—level: -30 + Math.random() * 40,libs/aphrodite/vod-chaptering/src/index.ts:301—isSpeech: Math.random() > 0.3,libs/aphrodite/vod-chaptering/src/index.ts:302—isMusic: Math.random() > 0.7,libs/aphrodite/vod-chaptering/src/index.ts:303—isSilence: Math.random() > 0.9,libs/aphrodite/vod-chaptering/src/index.ts:304—speakerChange: Math.random() > 0.85,libs/aphrodite/vod-chaptering/src/index.ts:326—activityLevel: Math.random(),libs/aphrodite/vod-chaptering/src/index.ts:327—motionScore: Math.random(),libs/aphrodite/vod-chaptering/src/index.ts:328—chatActivity: Math.random(),libs/aphrodite/vod-chaptering/src/index.ts:329—reactionActivity: Math.random(),libs/aphrodite/vod-chaptering/src/index.ts:347—const segmentDuration = 30 + Math.random() * 60;libs/aphrodite/wearables/src/index.ts:1382—const numRR = Math.floor(Math.random() * 3) + 1;libs/arete/ai-coach/src/coaching.ts:263—const index = Math.floor(Math.random() * MOTIVATIONAL_QUOTES.length);libs/arete/gamification/src/accountability.ts:15—const r = (Math.random() * 16) | 0;libs/arete/gamification/src/badges.ts:15—const r = (Math.random() * 16) | 0;libs/arete/gamification/src/challenges.ts:15—const r = (Math.random() * 16) | 0;libs/arete/gamification/src/contracts.ts:15—const r = (Math.random() * 16) | 0;libs/arete/gamification/src/points.ts:44—const r = (Math.random() * 16) | 0;libs/arete/gamification/src/rewards.ts:15—const r = (Math.random() * 16) | 0;libs/asase/export/src/logistics-optimizer.ts:1441—availableSlotsTEU: Math.floor(50 + Math.random() * 200),libs/asase/supply-chain/src/delivery-proof.ts:334—const code = Math.floor(Math.random() * 10 ** OTP_CODE_LENGTH);libs/bellona/gameplay-systems/src/combat/index.ts:453—const critRoll = Math.random();libs/bellona/gameplay-systems/src/combat/index.ts:472—const dodgeRoll = Math.random();libs/bellona/gameplay-systems/src/combat/index.ts:485—const blockRoll = Math.random();libs/bellona/gameplay-systems/src/combat/index.ts:1000—if (effect.chance !== undefined && Math.random() > effect.chance) {libs/bellona/unity/src/gaussian-splatting/index.ts:2315—bytes[i] = Math.floor(Math.random() * 256);libs/bellona/unreal/src/metahuman/appearance-editor.ts:752—const r = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:753—const g = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:754—const b = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:763—const r = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:764—const g = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:765—const b = Math.random();libs/bellona/unreal/src/metahuman/appearance-editor.ts:768—waviness: Math.random(),libs/bellona/video/src/processing/index.ts:5085—lifetime: emitter.lifetime * (0.7 + Math.random() * 0.6), // 70-130% lifetime variationlibs/brigid/ai-industrial/src/edge-ai.ts:1036—const replaceIdx = Math.floor(Math.random() * this.samplesProcessed);libs/brigid/ai-industrial/src/process-optim.ts:52—const u = (intervals[i] + Math.random()) / n;libs/brigid/ai-industrial/src/sota.ts:1225—if (Math.random() < this.currentEpsilon) {libs/brigid/ai-industrial/src/sota.ts:1227—const randomActionIdx = Math.floor(Math.random() * this.actionCount);libs/brigid/factory/src/communications.ts:408—Math.floor(Math.random() * 256)libs/brigid/factory/src/production.ts:630—const j = Math.floor(Math.random() * (i + 1));libs/brigid/factory/src/production.ts:637—const cut1 = Math.floor(Math.random() * n);libs/brigid/factory/src/production.ts:638—const cut2 = Math.floor(Math.random() * n);libs/brigid/factory/src/production.ts:646—if (Math.random() > mutationRate) return individual;libs/brigid/factory/src/production.ts:648—const i = Math.floor(Math.random() * n);libs/brigid/factory/src/production.ts:649—const j = Math.floor(Math.random() * n);libs/brigid/financials/src/portfolio-analysis.ts:551—const u = Math.random();libs/brigid/financials/src/portfolio-analysis.ts:578—const rng = seed ?? Math.random;libs/brigid/financials/src/portfolio-analysis.ts:579—const originalRandom = Math.random;libs/brigid/robotics/src/robot-programming.ts:1010—const latencyMs = Math.round(Math.random() * 5 + 1); // 1–6ms simulated latencylibs/brigid/sota-enhancements/src/digital-thread-quantum.ts:467—const i = Math.floor(Math.random() * n);libs/brigid/sota-enhancements/src/digital-thread-quantum.ts:468—const j = Math.floor(Math.random() * n);libs/brigid/sota-enhancements/src/digital-thread-quantum.ts:476—if (delta < 0 || Math.random() < Math.exp(-delta / temp)) {libs/brigid/sota-enhancements/src/digital-thread-quantum.ts:526—.map(() => Math.round(Math.random())) as number[];libs/brigid/sota-enhancements/src/digital-thread-quantum.ts:546—.map(() => Math.round(Math.random())) as number[];libs/brigid/sota-enhancements/src/digital-thread-quantum.ts:561—const solution = new Array(problem.numVariables).fill(0).map(() => Math.random()) as number[];libs/brigid/sota-enhancements/src/federated-learning.ts:79—localLoss: 0.1 + Math.random() * 0.1,libs/brigid/sota-enhancements/src/reinforcement-learning.ts:87—if (Math.random() < epsilon) {libs/brigid/sota-enhancements/src/reinforcement-learning.ts:88—return Math.floor(Math.random() * NUM_ACTIONS) as ProcessAction;libs/brigid/sota-enhancements/src/reinforcement-learning.ts:412—: Math.floor(Math.random() * 2);libs/contracts/src/llm/test-utils.ts:590—for (let i = 0; i < 16; i++) bytes[i] = Math.floor(Math.random() * 256);libs/cybele/common/src/ids.ts:29—const random = Math.floor(Math.random() * 0xffffff)libs/demeter/journal/src/insights.ts:86—const r = (Math.random() * 16) | 0;libs/demeter/journal/src/observations.ts:160—const r = (Math.random() * 16) | 0;libs/demeter/journal/src/photos.ts:63—const r = (Math.random() * 16) | 0;libs/euterpe/core/src/intervals/intervals.ts:1613—const rng = seed !== undefined ? mulberry32(seed) : () => Math.random();libs/euterpe/genesis/src/stems/stems.ts:609—return { ...note, pitch: note.pitch + (Math.random() < vary ? interval : 0) };libs/euterpe/genesis/src/voice/voice.ts:583—for (let bar = 0; bar < bars; bar += 2 + Math.floor(Math.random() * 3)) {libs/euterpe/iot/src/smart-studio/index.ts:978—result += chars.charAt(Math.floor(Math.random() * chars.length));libs/euterpe/score/src/wwise/wwise.ts:556—return Math.floor(Math.random() * count);libs/euterpe/stage/src/crowd-interaction/crowd-interaction.ts:1030—const idx = Math.floor(Math.random() * fans.length);libs/euterpe/studio/src/instruments/instruments.ts:212—return Math.random() * 2 - 1;libs/euterpe/studio/src/instruments/instruments.ts:235—return Math.random() * 2 - 1;libs/euterpe/studio/src/instruments/instruments.ts:779—sample += (Math.random() * 2 - 1) * cfg.noiseLevel;libs/euterpe/studio/src/instruments/instruments.ts:1553—unisonPhases: new Array(unisonCount).fill(0).map(() => Math.random()),libs/euterpe/studio/src/instruments/instruments.ts:1950—const j = Math.floor(Math.random() * (i + 1));libs/euterpe/studio/src/instruments/instruments.ts:2534—delayLine[i] = (Math.random() * 2 - 1) * pickEnv * (velocity / 127);libs/euterpe/studio/src/instruments/instruments.ts:2536—delayLine[i] = i < delayLength / 2 ? (Math.random() * 2 - 1) * (velocity / 127) : 0;libs/euterpe/studio/src/instruments/instruments.ts:2539—delayLine[i] = (Math.random() * 2 - 1) * pickEnv * (velocity / 127) * 0.7;libs/euterpe/studio/src/instruments/instruments.ts:2545—delayLine[i] = (Math.random() * 2 - 1) * 0.01 * (velocity / 127);libs/euterpe/studio/src/instruments/instruments.ts:2639—const excitation = wgConfig.breathPressure * v.energy * (Math.random() * 2 - 1) * 0.01;libs/euterpe/video/src/beat-sync/index.ts:428—(beat.strength === 'medium' && Math.random() < config.onBeatBias) ||libs/freya/sota/src/nlp.ts:323—Math.floor(Math.random() * MarketingContentGenerator.AFRICAN_ELEMENTS.length)libs/hathor/client/src/helpers/quest-generation.ts:234—? rewardTemplate.itemPool[Math.floor(Math.random() * rewardTemplate.itemPool.length)]libs/hathor/client/src/helpers/quest-generation.ts:448—return Math.floor(Math.random() * (max - min + 1)) + min;libs/hathor/domain-models/src/common/utils.ts:210—let r = Math.random() * totalWeight;libs/hathor/domain-models/src/economy/utils.ts:61—randomFactor = Math.random(),libs/hathor/llm-npc/src/behavior/npc-conversation.ts:38—const idx = Math.floor(Math.random() * arr.length);libs/hathor/llm-npc/src/behavior/npc-conversation.ts:338—intent = Math.random() > 0.5 ? 'question' : 'inform';libs/hathor/llm-npc/src/behavior/npc-conversation.ts:475—return Math.random() < acceptChance;libs/hathor/llm-npc/src/brain/emotional-state.ts:404—if (adjacent && adjacent.length > 0 && Math.random() > 0.5) {libs/hathor/llm-npc/src/dialogue/dialogue-generator.ts:536—const selectedIndex = Math.floor(Math.random() * options.length);libs/hathor/llm-npc/src/dialogue/dialogue-generator.ts:578—const selectedIndex = Math.floor(Math.random() * options.length);libs/hathor/llm-npc/src/dialogue/safety-filter.ts:373—const selectedIndex = Math.floor(Math.random() * fallbacks.length);libs/hathor/llm-npc/src/provider-chain.ts:705—let random = Math.random() * totalWeight;libs/hathor/narrative/src/branching/branching-utils.ts:150—const idx = Math.floor(Math.random() * eligible.length);libs/hathor/narrative/src/branching/branching-utils.ts:158—const roll = Math.random() * totalWeight;libs/hathor/narrative/src/dialogue/dialogue-engine.ts:1816—const randomIndex = Math.floor(Math.random() * outgoing.length);libs/hathor/simulation/src/culture/manager.ts:71—/** Returns a float in [0, 1) — drop-in replacement for Math.random(). */libs/hathor/simulation/src/economy/manager.ts:66—/** Returns a float in [0, 1) — drop-in replacement for Math.random(). */libs/hathor/simulation/src/npc/behavior-tree.ts:650—this.selectedIndex = Math.floor(Math.random() * this.children.length);libs/hathor/simulation/src/npc/behavior-tree.ts:1501—let random = Math.random() * totalWeight;libs/hathor/simulation/src/politics/manager.ts:70—/** Returns a float in [0, 1) — drop-in replacement for Math.random(). */libs/hestia/ai-ml/src/flavor-pairing.ts:980—(1 - score.overlapScore / 100) * 50 + categoryDiff * 30 + Math.random() * 20,libs/hestia/ai-ml/src/recipe-generation.ts:771—amount: Math.round((1 + Math.random() * 2) * servings * 10) / 10,libs/hestia/ai-ml/src/recipe-generation.ts:813—durationMinutes: 3 + Math.floor(Math.random() * 8),libs/hestia/ai-ml/src/recipe-generation.ts:1594—durationMinutes: 5 + Math.floor(Math.random() * 5),libs/hestia/social/src/community-challenges.ts:2369—const noise = () => Math.round((Math.random() * 2 - 1) * 10) / 10;libs/hestia/social/src/recipe-sharing.ts:820—views: Math.floor(Math.random() * 5000) + 100,libs/hestia/social/src/recipe-sharing.ts:821—saves: Math.floor(Math.random() * 500) + 10,libs/hestia/social/src/recipe-sharing.ts:822—ratings: Math.floor(Math.random() * 200) + 5,libs/hestia/social/src/recipe-sharing.ts:823—averageRating: parseFloat((3.5 + Math.random() * 1.5).toFixed(1)),libs/hestia/social/src/recipe-sharing.ts:824—cooksCount: Math.floor(Math.random() * 300) + 5,libs/iris/agents/archetypes/src/operations-agent.ts:784—cpuPercent: Math.random() * 100,libs/iris/agents/archetypes/src/operations-agent.ts:785—memoryMb: Math.floor(Math.random() * 1000),libs/iris/agents/archetypes/src/operations-agent.ts:786—threads: Math.floor(Math.random() * 50) + 1,libs/iris/agents/archetypes/src/operations-agent.ts:809—usage: Math.random() * 100,libs/iris/agents/archetypes/src/operations-agent.ts:817—usedMb: Math.floor(Math.random() * 16384),libs/iris/agents/archetypes/src/operations-agent.ts:818—freeMb: Math.floor(Math.random() * 16384),libs/iris/agents/archetypes/src/operations-agent.ts:819—usagePercent: Math.random() * 100,libs/iris/agents/archetypes/src/operations-agent.ts:825—usedGb: Math.floor(Math.random() * 500),libs/iris/agents/archetypes/src/operations-agent.ts:826—freeGb: Math.floor(Math.random() * 500),libs/iris/agents/archetypes/src/operations-agent.ts:827—usagePercent: Math.random() * 100,libs/iris/agents/archetypes/src/operations-agent.ts:842—sizeKb: Math.floor(Math.random() * 10000),libs/iris/agents/archetypes/src/operations-agent.ts:843—errorCount: Math.floor(Math.random() * 10),libs/iris/agents/archetypes/src/operations-agent.ts:844—warningCount: Math.floor(Math.random() * 50),libs/iris/agents/archetypes/src/operations-agent.ts:1019—size: Math.floor(Math.random() * 10000000),libs/iris/agents/computer-use/desktop/src/index.ts:511—const processId = createProcessId(Math.floor(Math.random() * 100000));libs/iris/agents/computer-use/desktop/src/window-manager.ts:736—processId: window.processId ?? createProcessId(Math.floor(Math.random() * 10000)),libs/iris/agents/computer-use/vision/src/change-detector.ts:60—const similarity = dimensionsMatch ? 0.85 + Math.random() * 0.1 : 0.5;libs/iris/agents/computer-use/vision/src/change-detector.ts:281—if (Math.random() > 0.3) {libs/iris/agents/computer-use/vision/src/change-detector.ts:295—if (Math.random() > 0.5) {libs/iris/agents/computer-use/vision/src/change-detector.ts:309—if (Math.random() > 0.7) {libs/iris/agents/multi-agent/src/orchestrator.ts:502—50 + Math.random() * 100,libs/iris/agents/multi-agent/src/orchestrator.ts:512—success: Math.random() > 0.1, // 90% success ratelibs/iris/agents/multi-agent/src/orchestrator.ts:519—tokensUsed: Math.floor(Math.random() * 1000) + 100,libs/iris/agents/multi-agent/src/orchestrator.ts:523—quality: 0.6 + Math.random() * 0.4,libs/iris/agents/tools/learning/src/tool-registration.ts:1023—if (param.required || Math.random() > 0.5) {libs/iris/analytics/src/analytics-engine.ts:244—if (this.config.enableSampling && Math.random() > this.config.samplingRate) {libs/iris/code/quality/src/security-detector.ts:459—message: 'Math.random() is not cryptographically secure',libs/iris/conversation-orchestration/src/load-balancer.ts:322—let random = Math.random() * totalWeight;libs/iris/conversation-orchestration/src/load-balancer.ts:379—const index = Math.floor(Math.random() * providers.length);libs/iris/conversation/benchmarking/src/benchmark-suite.ts:59—if (Math.random() < this.failureRate) {libs/iris/conversation/benchmarking/src/benchmark-suite.ts:65—this.latencyRange.min + Math.random() * (this.latencyRange.max - this.latencyRange.min);libs/iris/conversation/benchmarking/src/benchmark-suite.ts:71—const outputTokens = Math.floor(Math.random() * maxTokens) + 10;libs/iris/conversation/finetuning/src/model-version-manager.ts:78—latencyMs: Math.floor(Math.random() * 500) + 100,libs/iris/conversation/prompts/src/prompt-testing.ts:117—let random = Math.random() * totalAllocation;libs/iris/conversation/prompts/src/prompt-testing.ts:191—return gammaSample(shape + 1) * Math.pow(Math.random(), 1 / shape);libs/iris/conversation/prompts/src/prompt-testing.ts:205—const u = Math.random();libs/iris/core/src/tracing/correlation.ts:302—const bytes = Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));libs/iris/core/src/tracing/correlation.ts:310—const bytes = Array.from({ length: 8 }, () => Math.floor(Math.random() * 256));libs/iris/embeddings/src/client.ts:480—return Math.floor(Math.random() * capped);libs/iris/emotional/ethics/src/human-relationship-respect.ts:374—const index = Math.floor(Math.random() * templates.length);libs/iris/integrations/maya/src/agents/npc-control-agent.ts:750—const angle = Math.random() * Math.PI * 2;libs/iris/integrations/maya/src/agents/npc-control-agent.ts:751—const distance = Math.random() * wanderRadius;libs/iris/integrations/maya/src/companion/maya-companion.ts:736—if (context.threats.length > 0 && Math.random() < 0.5) {libs/iris/integrations/maya/src/companion/maya-companion.ts:741—if (context.nearbyPOIs.length > 0 && Math.random() < 0.3) {libs/iris/integrations/maya/src/companion/maya-companion.ts:747—if (context.relevantQuests.length > 0 && Math.random() < 0.3) {libs/iris/integrations/nyx/src/observations/observation-planning-service.ts:598—return new Date(date.getTime() + Math.random() * 8 * 3600000);libs/iris/integrations/psyche/src/agents/avatar-presenter-agent.ts:606—const random = Math.random();libs/iris/integrations/psyche/src/emotion/emotion-service.ts:636—if (Math.random() < 0.1) {libs/iris/integrations/psyche/src/emotion/emotion-service.ts:647—const intensity = 0.2 + Math.random() * 0.3; // Low intensitylibs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:275—totalFound: papers.length + Math.floor(Math.random() * 100),libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:448—citationCount: Math.floor(Math.random() * 200),libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:510—paperCount: 5 + Math.floor(Math.random() * 15),libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:600—nodeCount: 10 + Math.floor(Math.random() * 30),libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:613—citationCount: 100 + Math.floor(Math.random() * 500),libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:639—const publicationCount = baseCount + Math.floor(Math.random() * 30);libs/iris/integrations/sophia/src/agents/literature-reviewer-agent.ts:640—const citationCount = publicationCount * (5 + Math.floor(Math.random() * 10));libs/iris/integrations/sophia/src/agents/research-assistant-agent.ts:326—const supports = Math.random() > 0.3;libs/iris/integrations/sophia/src/agents/research-assistant-agent.ts:338—} else if (Math.random() > 0.5) {libs/iris/integrations/sophia/src/knowledge/knowledge-base-service.ts:139—mentionCount: Math.floor(Math.random() * 50) + 1,libs/iris/integrations/sophia/src/knowledge/knowledge-base-service.ts:140—createdAt: now - Math.floor(Math.random() * 86400000),libs/iris/integrations/sophia/src/knowledge/knowledge-base-service.ts:156—weight: Math.random() * 0.5 + 0.5,libs/iris/integrations/sophia/src/research/research-assistant-service.ts:204—Math.random() > 0.5libs/iris/integrations/sophia/src/research/research-assistant-service.ts:205—?0000-000${Math.floor(Math.random() * 10)}-${Math.floor(Math.random() * 10000)`libs/iris/integrations/sophia/src/research/research-assistant-service.ts:207—.padStart(4, '0')}-${Math.floor(Math.random() * 10000)libs/iris/integrations/sophia/src/research/research-assistant-service.ts:241—year: 2020 + Math.floor(Math.random() * 5),libs/iris/integrations/sophia/src/research/research-assistant-service.ts:255—if (index > 0 && Math.random() > 0.4 && sources.length > 0) {libs/iris/integrations/sophia/src/research/research-assistant-service.ts:256—const sourceIndex = Math.floor(Math.random() * Math.min(sources.length, 3));libs/iris/integrations/sophia/src/search/literature-search-service.ts:203—Math.random() > 0.5libs/iris/integrations/sophia/src/search/literature-search-service.ts:268—citationCount: Math.floor(Math.random() * 500),libs/iris/integrations/sophia/src/search/literature-search-service.ts:663—const publicationCount = baseCount + Math.floor(Math.random() * 30);libs/iris/integrations/sophia/src/search/literature-search-service.ts:664—const citationCount = publicationCount * (5 + Math.floor(Math.random() * 10));libs/iris/integrations/sophia/src/search/literature-search-service.ts:732—const documentCount = 10 + Math.floor(Math.random() * 90);libs/iris/integrations/sophia/src/search/literature-search-service.ts:733—const citationCount = documentCount * (20 + Math.floor(Math.random() * 100));libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:866—const similarity = 0.85 + Math.random() * 0.1;libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1022—const usageScore = Math.random();libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1200—metadata.hasAlpha = Math.random() > 0.5;libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1204—metadata.duration = 30 + Math.random() * 300;libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1209—metadata.duration = 60 + Math.random() * 240;libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1214—metadata.pageCount = Math.floor(1 + Math.random() * 20);libs/iris/integrations/yemaya/src/agents/asset-organizer-agent.ts:1215—metadata.wordCount = Math.floor(100 + Math.random() * 5000);libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:919—const simulatedPeak = -3 + Math.random() * 6;libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:920—const simulatedRms = -18 + Math.random() * 12;libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:921—const simulatedLoudness = -16 + Math.random() * 8;libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:953—spectrum.push(-60 + Math.random() * 50);libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:975—range: 8 + Math.random() * 6,libs/iris/integrations/yemaya/src/agents/audio-mixer-agent.ts:981—crest: 12 + Math.random() * 8,libs/iris/knowledge/retrieval/src/dense-retriever.ts:412—while (Math.random() < 0.5 && level < this.maxLevel) {libs/iris/knowledge/retrieval/src/evaluation.ts:618—const idx = Math.floor(Math.random() * scores.length);libs/iris/knowledge/retrieval/src/multi-vector-retriever.ts:332—centroid[j] = Math.random() * 2 - 1;libs/iris/knowledge/retrieval/src/multi-vector-retriever.ts:387—const firstIdx = Math.floor(Math.random() * embeddings.length);libs/iris/knowledge/retrieval/src/multi-vector-retriever.ts:409—let sample = Math.random() * totalDist;libs/iris/memory/episodic/src/milestone-tracker.ts:514—const index = Math.floor(Math.random() * categoryTemplates.length);libs/iris/memory/persistence/src/backup-automation.ts:489—return this.options.random ? this.options.random() : Math.random();libs/iris/memory/persistence/src/redis-cache.ts:606—const j = Math.floor(Math.random() * (i + 1));libs/iris/memory/personalization/testing/src/variant-assignment.ts:70—const randomValue = Math.random() * 100;libs/iris/memory/personalization/testing/src/variant-assignment.ts:122—const randomIndex = Math.floor(Math.random() * closeCandidates.length);libs/iris/memory/privacy/src/encryption/secure-recovery.ts:392—userData.securityQuestions[Math.floor(Math.random() * userData.securityQuestions.length)];libs/iris/memory/visualization/src/memory-graph.ts:273—x: Math.random() * 1000 - 500,libs/iris/memory/visualization/src/memory-graph.ts:274—y: Math.random() * 1000 - 500,libs/iris/memory/visualization/src/topic-cluster-view.ts:221—centroidIndices.add(Math.floor(Math.random() * n));libs/iris/multimodal/bci/src/bci-device.ts:597—channelQuality.set(label, 0.8 + Math.random() * 0.15);libs/iris/multimodal/spatial/src/spatial-impl.ts:403—const distance = 2 + Math.random() * 3;libs/iris/multimodal/spatial/src/spatial-impl.ts:737—const distance = 1.5 + Math.random() * 2;libs/iris/multimodal/spatial/src/spatial-impl.ts:1380—ambientIntensity: 0.5 + Math.random() * 0.1 - 0.05,libs/iris/multimodal/vision/documents/src/document-parser.ts:197—pageCount: 5 + Math.floor(Math.random() * 10),libs/iris/multimodal/vision/documents/src/document-parser.ts:199—hasForms: Math.random() > 0.7,libs/iris/multimodal/vision/documents/src/document-parser.ts:200—hasTables: Math.random() > 0.5,libs/iris/multimodal/vision/documents/src/document-parser.ts:201—hasImages: Math.random() > 0.6,libs/iris/multimodal/vision/documents/src/document-parser.ts:246—const numBlocks = 3 + Math.floor(Math.random() * 5);libs/iris/multimodal/vision/documents/src/document-parser.ts:262—headingLevel: isHeading ? Math.floor(Math.random() * 3) + 1 : undefined,libs/iris/multimodal/vision/documents/src/document-parser.ts:313—if (Math.random() > 0.5) return [];libs/iris/multimodal/vision/documents/src/document-parser.ts:329—if (Math.random() > 0.5) return [];libs/iris/multimodal/vision/documents/src/document-parser.ts:380—if (Math.random() > 0.7) return [];libs/iris/multimodal/vision/documents/src/document-parser.ts:690—const amount = 10 + Math.random() * 200;libs/iris/multimodal/vision/documents/src/document-parser.ts:702—const numItems = 2 + Math.floor(Math.random() * 5);libs/iris/multimodal/vision/documents/src/document-parser.ts:716—const quantity = Math.random() > 0.7 ? 2 : 1;libs/iris/multimodal/vision/documents/src/document-parser.ts:813—const numTables = Math.floor(Math.random() * 3);libs/iris/multimodal/vision/documents/src/document-parser.ts:817—const rows = 3 + Math.floor(Math.random() * 5);libs/iris/multimodal/vision/documents/src/document-parser.ts:818—const cols = 2 + Math.floor(Math.random() * 3);libs/iris/multimodal/vision/documents/src/document-parser.ts:882—return String(Math.floor(Math.random() * 1000));libs/iris/multimodal/vision/documents/src/document-parser.ts:884—return$${(Math.random() * 1000).toFixed(2)};libs/iris/multimodal/vision/documents/src/document-parser.ts:886—returnData ${Math.floor(Math.random() * 100)};libs/iris/multimodal/vision/documents/src/document-parser.ts:1022—const numElements = 5 + Math.floor(Math.random() * 5);libs/iris/multimodal/vision/documents/src/document-parser.ts:1036—if (Math.random() > 0.3) {libs/iris/multimodal/vision/documents/src/document-parser.ts:1048—const numParagraphs = 2 + Math.floor(Math.random() * 3);libs/iris/multimodal/vision/documents/src/document-parser.ts:1067—if (Math.random() > 0.3) {libs/iris/multimodal/vision/generation/src/generation-impl.ts:146—seed: Math.floor(Math.random() * 2147483647),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:225—const numObjects = Math.floor(Math.random() * config.maxObjects * 0.1) + 1;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:257—const x = Math.floor(Math.random() * imageSize.width * 0.7);libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:258—const y = Math.floor(Math.random() * imageSize.height * 0.7);libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:259—const width = Math.floor(Math.random() * (imageSize.width - x) * 0.5) + 50;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:260—const height = Math.floor(Math.random() * (imageSize.height - y) * 0.5) + 50;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:357—orientation: Math.random() > 0.7 ? 'upright' : 'unknown',libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:464—i === count - 1 ? remainingPct : Math.floor(remainingPct * (0.3 + Math.random() * 0.4));libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:480—sharpness: 0.6 + Math.random() * 0.4,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:481—exposure: 0.7 + Math.random() * 0.3,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:482—colorAccuracy: 0.75 + Math.random() * 0.25,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:483—contrast: 0.65 + Math.random() * 0.35,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:484—saturation: 0.6 + Math.random() * 0.4,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:485—noiseLevel: Math.random() * 0.3,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:487—aestheticScore: 0.6 + Math.random() * 0.4,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:768—const numBlocks = Math.floor(Math.random() * 5) + 1;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:786—fontSize: 12 + Math.floor(Math.random() * 12),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:795—const numLines = Math.floor(Math.random() * 3) + 1;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:816—const numWords = Math.floor(Math.random() * 5) + 2;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:827—isHandwritten: config.enableHandwriting && Math.random() > 0.8,libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:839—x: 50 + Math.floor(Math.random() * 100),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:840—y: 50 + Math.floor(Math.random() * 200),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:841—width: 400 + Math.floor(Math.random() * 200),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:842—height: 50 + Math.floor(Math.random() * 100),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:943—value1: Math.floor(Math.random() * 100),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:944—value2: Math.floor(Math.random() * 100),libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:956—return Math.random() > 0.3 ? 'Sample Chart Title' : undefined;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:974—const numSeries = chartType === 'pie' ? 1 : Math.floor(Math.random() * 3) + 1;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:993—const numPoints = Math.min(Math.floor(Math.random() * 10) + 3, maxPoints, categories.length);libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:998—const value = i === numPoints - 1 ? total : Math.floor(Math.random() * total * 0.5) + 5;libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:1011—const value = Math.floor(Math.random() * 100);libs/iris/multimodal/vision/understanding/src/image-analyzer.ts:1013—x: chartType === 'scatter' ? Math.random() * 100 : categories[i],libs/iris/multimodal/vision/video/src/video-analyzer.ts:385—const startFrame = Math.floor(Math.random() * Math.floor(frames.length / 2));libs/iris/multimodal/vision/video/src/video-analyzer.ts:386—const endFrame = startFrame + Math.floor(Math.random() * (frames.length - startFrame));libs/iris/multimodal/vision/video/src/video-analyzer.ts:453—averageLoudness: -18 + Math.random() * 6,libs/iris/multimodal/vision/video/src/video-analyzer.ts:454—dynamicRange: 10 + Math.random() * 10,libs/iris/multimodal/vision/video/src/video-analyzer.ts:601—return 30 + Math.random() * 270; // 30s to 5minlibs/iris/multimodal/vision/video/src/video-analyzer.ts:614—return Math.floor(10000000 + Math.random() * 100000000);libs/iris/multimodal/vision/video/src/video-analyzer.ts:621—data.push(Math.floor(Math.random() * 1000));libs/iris/multimodal/vision/video/src/video-analyzer.ts:693—const count = 3 + Math.floor(Math.random() * 3);libs/iris/multimodal/vision/video/src/video-analyzer.ts:698—return 0.3 + Math.random() * 0.4;libs/iris/multimodal/vision/video/src/video-analyzer.ts:798—const angle = Math.random() * Math.PI * 2;libs/iris/multimodal/vision/video/src/video-analyzer.ts:799—const magnitude = Math.random() * 10;libs/iris/multimodal/vision/video/src/video-analyzer.ts:814—const startTime = time + Math.random() * 10;libs/iris/multimodal/vision/video/src/video-analyzer.ts:815—const segmentDuration = 2 + Math.random() * 8;libs/iris/multimodal/vision/video/src/video-analyzer.ts:838—if (Math.random() > 0.3) {libs/iris/multimodal/vision/video/src/video-analyzer.ts:854—const count = Math.floor(3 + Math.random() * 5);libs/iris/multimodal/vision/video/src/video-analyzer.ts:857—timestamp: Math.random() * duration,libs/iris/multimodal/vision/video/src/video-analyzer.ts:979—(duration / numActions) * (0.5 + Math.random() * 0.5)libs/iris/multimodal/vision/video/src/video-analyzer.ts:984—mergedConfig.minConfidence + Math.random() * (1 - mergedConfig.minConfidence);libs/iris/multimodal/vision/video/src/video-analyzer.ts:1173—x: 100 + Math.random() * 200,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1174—y: 100 + Math.random() * 200,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1175—width: 80 + Math.random() * 40,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1176—height: 150 + Math.random() * 50,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1964—const count = Math.floor(Math.random() * 3);libs/iris/multimodal/vision/video/src/video-analyzer.ts:1970—x: Math.random() * 800,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1971—y: Math.random() * 400,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1972—width: 50 + Math.random() * 150,libs/iris/multimodal/vision/video/src/video-analyzer.ts:1973—height: 50 + Math.random() * 200,libs/iris/multimodal/voice/conversation/src/full-duplex-engine.ts:571—if (Math.random() > this.config.frequency) {libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts:343—output[i] += (Math.random() * 2 - 1) * noiseLevel;libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts:1567—inputLevelDb: this.localMuted ? -100 : -30 + Math.random() * 20,libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts:1568—outputLevelDb: -35 + Math.random() * 25,libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts:1569—isSpeaking: !this.localMuted && Math.random() > 0.5,libs/iris/multimodal/voice/conversation/src/webrtc/webrtc-voice.ts:1570—vadConfidence: Math.random(),libs/iris/multimodal/voice/synthesis/src/cartesia/cartesia-provider.ts:650—const latencyMs = baseLatency + textLatency + Math.random() * 20;libs/iris/multimodal/voice/synthesis/src/cartesia/cartesia-provider.ts:708—await this.sleep(chunkLatency + Math.random() * 10);libs/iris/multimodal/voice/synthesis/src/local/local-provider.ts:886—const processingMs = durationMs * qualityFactor + Math.random() * 50;libs/iris/multimodal/voice/synthesis/src/local/local-provider.ts:943—await this.sleep(durationMs * qualityFactor + Math.random() * 20);libs/iris/platform/customization/agents/src/utils/id.ts:12—bytes[i] = Math.floor(Math.random() * 256);libs/iris/platform/webhooks/src/retry-handler.ts:39—this.random = deps.random ?? Math.random;libs/iris/privacy/safety/behavior/src/action-confirmation.ts:243—const code = Math.floor(100000 + Math.random() * 900000).toString();libs/iris/privacy/safety/behavior/src/action-confirmation.ts:258—const a = Math.floor(10 + Math.random() * 90);libs/iris/privacy/safety/behavior/src/action-confirmation.ts:259—const b = Math.floor(10 + Math.random() * 90);libs/iris/privacy/safety/transparency/src/utils.ts:12—const r = (Math.random() * 16) | 0;libs/iris/privacy/sovereignty/src/index.ts:4114—return Math.random();libs/iris/testing/load/src/load-test-suite.ts:50—this.rng = deps.rng ?? Math.random;libs/iris/testing/src/e2e/agent-tasks.ts:405—if (this.config.failingTasks.has(task.id) || Math.random() < this.config.failureRate) {libs/iris/testing/src/e2e/memory-persistence.ts:358—Memory entry ${i} with unique content ${Math.random()}libs/iris/testing/src/mocks/http-client.ts:366—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/memory-store.ts:829—embedding.push(Math.random() * 2 - 1); // Random values between -1 and 1libs/iris/testing/src/mocks/model-provider.ts:349—Math.random() < this.responseConfig.errorProbabilitylibs/iris/testing/src/mocks/storage.ts:529—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/storage.ts:868—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/storage.ts:1228—vector.push(Math.random() * 2 - 1);libs/iris/testing/src/mocks/storage.ts:1315—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/voice-provider.ts:352—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/voice-provider.ts:377—audioData[i] = Math.floor(Math.random() * 256);libs/iris/testing/src/mocks/voice-provider.ts:437—chunk[j] = Math.floor(Math.random() * 256);libs/iris/testing/src/mocks/voice-provider.ts:577—if (this.config.errorProbability && Math.random() < this.config.errorProbability) {libs/iris/testing/src/mocks/voice-provider.ts:678—const duration = avgWordDuration * (0.5 + Math.random());libs/iris/testing/src/mocks/voice-provider.ts:701—const duration = avgSentenceDuration * (0.7 + Math.random() * 0.6);libs/iris/testing/src/performance/load-tests.ts:486—let random = Math.random() * totalWeight;libs/iris/testing/src/regression/tests.ts:33—await simulateLatency(50 + Math.random() * 50);libs/iris/testing/src/regression/tests.ts:64—const tokens = 100 + Math.floor(Math.random() * 100);libs/iris/testing/src/regression/tests.ts:99—const ttft = 20 + Math.random() * 30;libs/iris/testing/src/regression/tests.ts:103—await simulateLatency(50 + Math.random() * 50);libs/iris/testing/src/regression/tests.ts:144—const data = new Array(10000).fill(0).map(() => Math.random());libs/iris/testing/src/regression/tests.ts:356—await simulateLatency(30 + Math.random() * 20);libs/iris/testing/src/regression/tests.ts:359—instructionFollowing: 0.9 + Math.random() * 0.1,libs/iris/testing/src/regression/tests.ts:360—formatAdherence: 0.85 + Math.random() * 0.15,libs/iris/testing/src/regression/tests.ts:361—reasoning: 0.8 + Math.random() * 0.2,libs/iris/testing/src/regression/tests.ts:416—capabilities.coding.push(0.85 + Math.random() * 0.15);libs/iris/testing/src/regression/tests.ts:417—capabilities.analysis.push(0.8 + Math.random() * 0.2);libs/iris/testing/src/regression/tests.ts:418—capabilities.writing.push(0.9 + Math.random() * 0.1);libs/iris/testing/src/regression/tests.ts:419—capabilities.math.push(0.75 + Math.random() * 0.25);libs/iris/testing/src/regression/tests.ts:517—const relevance = 0.7 + Math.random() * 0.3;libs/iris/testing/src/regression/tests.ts:518—const coherence = 0.75 + Math.random() * 0.25;libs/iris/testing/src/regression/tests.ts:519—const completeness = 0.65 + Math.random() * 0.35;libs/iris/testing/src/regression/tests.ts:520—const fluency = 0.8 + Math.random() * 0.2;libs/iris/voice/ultra-low-latency/src/backchannel-generator.ts:60—if (Math.random() > this.config.frequency) {libs/isis/3d-generation/src/processing/mesh-cleanup-utils.ts:740—const i = Math.floor(Math.random() * faceCount);libs/isis/3d-generation/src/processing/mesh-cleanup-utils.ts:741—const j = Math.floor(Math.random() * faceCount);libs/isis/3d-inference-local/src/models/trellis2-seed-control.ts:63—return Math.floor(Math.random() * (LOCAL_3D_TRELLIS2_MAX_SEED + 1));libs/isis/3d-quality-gates/src/operations/annotation-tools.ts:199—returnannotation*${nowIso.replace(/[^0-9]/g, '').slice(0, 14)}*${Math.random()`libs/isis/ai-providers/src/orchestration/unified-generation-pipeline.ts:761—return baseDelayMs * Math.pow(2, attempt) + Math.random() * 1000;libs/isis/ai-providers/src/providers/civitai/civitai-link-provider.ts:741—key += chars.charAt(Math.floor(Math.random() * chars.length));libs/isis/ai-providers/src/providers/comfy/runpod-adapter.ts:3963—return Math.floor(Math.random() * 100);libs/isis/ai-providers/src/providers/image-generation/flux-workflows.ts:194—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/flux-workflows.ts:373—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/flux-workflows.ts:573—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/flux-workflows.ts:815—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/sd35-workflows.ts:317—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/sd35-workflows.ts:481—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/sd35-workflows.ts:658—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/image-generation/sd35-workflows.ts:897—const seed = params.seed ?? Math.floor(Math.random() * 2147483647);libs/isis/ai-providers/src/providers/instantid/instantid-provider.ts:1561—seed: params.seed ?? Math.floor(Math.random() * 2147483647),libs/isis/ai-providers/src/providers/instantid/instantid-provider.ts:1593—seed: params.seed ?? Math.floor(Math.random() * 2147483647),libs/isis/ai-providers/src/providers/ip-adapter/ip-adapter-provider.ts:1749—seed: params.seed ?? Math.floor(Math.random() * 2147483647),libs/isis/llm-providers/src/client/llm-client.ts:1224—return half + Math.random() * half;libs/isis/llm-providers/src/client/llm-client.ts:1227—return Math.min(policy.maxBackoffMs, policy.initialBackoffMs + Math.random() * capped * 3);libs/isis/llm-providers/src/client/llm-client.ts:1230—return Math.random() * capped;libs/isis/llm-providers/src/client/llm-client.ts:1322—for (let i = 0; i < 16; i++) bytes[i] = Math.floor(Math.random() * 256);libs/isis/prompt-engineering/src/few-shot-manager/few-shot-manager.ts:314—const j = Math.floor(Math.random() * (i + 1));libs/kuanyin/ai-ml-models/src/cognitive-reframing.ts:5133—const batchAccuracy = crSigmoid(rewardModelAccuracy * 3 - 1.2 + Math.random() * 0.1);libs/kuanyin/ai-ml-models/src/cognitive-reframing.ts:5145—currentKL = crClamp(0.01 + epoch * 0.005 * (1 - clampedKLWeight) + Math.random() * 0.005, 0, 1);libs/kuanyin/ai-ml-models/src/cognitive-reframing.ts:5159—const valAccuracyDrop = 0.02 + Math.random() * 0.03; // generalization gaplibs/kuanyin/ai-ml-models/src/emotional-state-detection.ts:2766—culturalContexts.map((c) => [c, 0.8 + Math.random() * 0.2])libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:2867—processingTimeMs: hpsFormatOutput(5 + Math.random() * 20, 1),libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4562—const positiveRate = hpsClamp(0.15 + baseVariation + Math.random() * 0.02, 0.05, 0.35);libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4563—const tpr = hpsClamp(0.8 + baseVariation * 0.5 + Math.random() * 0.03, 0.6, 0.98);libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4564—const fpr = hpsClamp(0.1 - baseVariation * 0.3 + Math.random() * 0.02, 0.02, 0.25);libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4770—const idx = Math.floor(Math.random() * predictionScores.length);libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4964—const itemDifficulty = 0.3 + Math.random() * 0.4;libs/kuanyin/ai-ml-models/src/harm-potential-scoring.ts:4966—const agreed = Math.random() < agreementProb;libs/kuanyin/ai-ml-models/src/intent-classification.ts:3633—const preCalibrationECE = icFormatOutput(baselinePreECE * (1 + (Math.random() * 0.1 - 0.05)), 4);libs/kuanyin/community-harmony/src/raid-defense.ts:2004—Math.floor(Math.random() * REASSURANCE_TEMPLATES_EMPATHETIC.length)libs/kuanyin/community-harmony/src/raid-defense.ts:2008—Math.floor(Math.random() * REASSURANCE_TEMPLATES_ACTION.length)libs/kuanyin/community-harmony/src/raid-defense.ts:2013—Math.floor(Math.random() * REASSURANCE_TEMPLATES_CALM.length)libs/kuanyin/cross-domain/src/aphrodite-integration.ts:3930—const responseTimeMs = safeWordDetected ? 75 + Math.floor(Math.random() * 50) : 0;libs/kuanyin/cross-domain/src/aphrodite-integration.ts:4023—? 30 + Math.floor(Math.random() * 20)libs/kuanyin/cross-domain/src/aphrodite-integration.ts:4024—: 100 + Math.floor(Math.random() * 50);libs/kuanyin/cross-domain/src/lilith-integration.ts:3375—resonanceScore: lilRound4(resonanceBase + Math.random() * 0.1),libs/kuanyin/dharma-analytics/src/community-health-metrics.ts:4202—const dimImpact = delta * (0.8 + Math.random() * 0.4);libs/kuanyin/precognition/src/intent-analysis.ts:78—result += chars.charAt(Math.floor(Math.random() * chars.length));libs/kuanyin/rehabilitation/src/accountability-tracking.ts:4215—? Math.ceil(Math.random() * 3) + 1libs/kuanyin/rehabilitation/src/journey-progress.ts:3550—options.facilitatorPreference ??fac-${Math.floor(200 + Math.random() * 10)};libs/kuanyin/rehabilitation/src/journey-progress.ts:3553—: clamp(0.6 + Math.random() * 0.3, 0.6, 0.95);libs/kuanyin/rehabilitation/src/journey-progress.ts:3904—? clamp(0.6 + Math.random() * 0.35, 0.5, 1.0)libs/kuanyin/rehabilitation/src/journey-progress.ts:3905—: clamp(0.3 + Math.random() * 0.3, 0.2, 0.7);libs/kuanyin/rehabilitation/src/journey-progress.ts:7403—accessibilityChecked: scope === 'accessibility_enhancement' || Math.random() > 0.3,libs/kuanyin/rehabilitation/src/journey-progress.ts:7404—culturalSensitivityReviewed: scope === 'cultural_adaptation' || Math.random() > 0.4,libs/kuanyin/rehabilitation/src/reintegration-pathways.ts:5252—connectionScore: Math.round(clamp(0.5 + Math.random() * 0.4, 0, 1) * 1000) / 1000,libs/kuanyin/rehabilitation/src/restorative-circles.ts:6906—priorScore: ms.score * (0.9 + Math.random() * 0.15),libs/kuanyin/rehabilitation/src/restorative-circles.ts:6907—changePercentage: Math.round((Math.random() * 20 - 5) * 100) / 100,libs/kuanyin/sdk-api/src/rest-api-endpoints.ts:4556—const uptimeSeconds = Math.floor(Math.random() * 86400) + 3600; // 1 hour to 24 hourslibs/kuanyin/sdk-api/src/typescript-sdk.ts:2623—state === 'reconnecting' ? Math.min(Math.floor(Math.random() * maxReconnect), maxReconnect) : 0;libs/kuanyin/sdk-api/src/typescript-sdk.ts:3500—const avgLatencyMs = input.mockServerEnabled ? sdkRound2(2 + Math.random() * 5) : 0;libs/kuanyin/ui-components/src/performer-dashboard-components.ts:4179—const currentValue = Math.random() * rule.threshold * 1.5;libs/kuanyin/ui-components/src/performer-dashboard-components.ts:4681—const overlapEstimate = clamp(Math.random() * 30, 0, 100);libs/kuanyin/ui-components/src/performer-dashboard-components.ts:5210—achievedAt: now - Math.round(Math.random() * 30 * 86400000),libs/kuanyin/ui-components/src/rehabilitation-journey-components.ts:3899—const relevanceScore = interestMatch ? 0.9 : 0.5 + Math.random() * 0.3;libs/kuanyin/ui-components/src/rehabilitation-journey-components.ts:3903—participantCount: Math.floor(bestGroup!.currentMembers * (0.5 + Math.random() * 0.5)),libs/lakshmi/core/src/calculations/monte-carlo.ts:66—/** Optional custom RNG for testing (default: Math.random) */libs/lakshmi/core/src/calculations/monte-carlo.ts:277—const rng = config.rng ?? Math.random;libs/lakshmi/core/src/calculations/tvm.ts:148—rate = guess * (0.5 + Math.random()); // restart with perturbed guesslibs/lakshmi/retirement/src/monte-carlo-projection.ts:94—const rng = input.rng ?? Math.random;libs/lakshmi/security/src/differential-privacy.ts:135—const noisyValue = raw + calibratedNoise(config, sensitivity, input.rng ?? Math.random);libs/lakshmi/security/src/differential-privacy.ts:207—export function laplaceNoise(scale: number, rng: () => number = Math.random): number {libs/lilith/service-lib/comfyui/workflow-builder.ts:160—return Math.floor(Math.random() * 2147483647);libs/lilith/service-lib/comfyui/workflow-builder.ts:470—return this.setSeed(nodeId, Math.floor(Math.random() * 2147483647));libs/lilith/service-lib/comfyui/workflow-builder.ts:767—seed: options?.seed ?? Math.floor(Math.random() * 2147483647),libs/lilith/service-lib/lilith-logger.ts:532—return Math.random() < rate;libs/lilith/service-lib/rate-limiting-middleware.ts:194—pipeline.zadd(key, now,${now}-${Math.random()});libs/lilith/service-lib/test-data-factories.ts:72—token_count: Math.floor(Math.random() * 100) + 10,libs/lilith/service-lib/test-database-manager.ts:463—user.id = (result.rows[0]?.['id'] as number) || Math.floor(Math.random() * 1000) + 1;libs/lilith/service-lib/test-database-manager.ts:487— ``conv_${Math.floor(Math.random() * 1000) + 1};libs/maat/agents/src/federated-learning-framework.ts:111—W[i] = (Math.random() * 2 - 1) * scale;libs/maat/agents/src/federated-learning-framework.ts:1065—const features = Array.from({ length: inputSize }, () => Math.random() + bias);libs/maat/agents/src/rl-capital-allocation-env.ts:915—indices.add(Math.floor(Math.random() * this.buffer.length));libs/maat/agents/src/rl-capital-allocation-env.ts:1008—if (Math.random() < this.epsilon) {libs/maat/agents/src/rl-capital-allocation-env.ts:1009—return Math.floor(Math.random() * TEMPLATE_NAMES.length);libs/maat/agents/src/rl-capital-allocation-env.ts:1158—let r = Math.random();libs/maat/agents/src/rl-capital-allocation-env.ts:1321—let r = Math.random();libs/maat/capital/src/black-litterman.ts:318—const assetId = makeId(bla-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/capital/src/black-litterman.ts:347—viewId: makeId(view-${input.assetId}-${Date.now()}-${Math.random()}),libs/maat/capital/src/black-litterman.ts:385—const resultId = makeId(blopt-${now}-${Math.random()});libs/maat/capital/src/capital-budgeting.ts:289—const projectId = makeId(proj-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/capital/src/capital-budgeting.ts:331—constraintId: makeId(cstr-${input.type}-${Date.now()}-${Math.random()}),libs/maat/capital/src/capital-budgeting.ts:350—const resultId = makeId(opt-${now}-${Math.random()});libs/maat/capital/src/hurdle-rate.ts:338—const unitId = makeId(unit-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/capital/src/hurdle-rate.ts:467—const comparisonId = makeId(comp-${now}-${Math.random()});libs/maat/capital/src/investment-evaluation.ts:309—opp-${input.company}-${input.name}-${Date.now()}-${Math.random()}libs/maat/capital/src/investment-evaluation.ts:481—const rankingId = makeId(rank-${now}-${Math.random()});libs/maat/capital/src/treasury-management.ts:284—acct-${input.company}-${input.accountName}-${Date.now()}-${Math.random()}libs/maat/capital/src/treasury-management.ts:349—loan-${lenderAccount.company}-${borrowerAccount.company}-${Date.now()}-${Math.random()}libs/maat/capital/src/treasury-management.ts:434—const poolId = makeId(pool-${poolCurrency}-${now}-${Math.random()});libs/maat/capital/src/treasury-management.ts:469—transactionId: makeId(sweep-${surplus.accountId}-${deficit.accountId}-${Math.random()}),libs/maat/capital/src/treasury-management.ts:498—sweep-${surplus.accountId}-${poolMaster.accountId}-${Math.random()}libs/maat/integrations/src/iris-integration.ts:258—intentConfidence = 0.8 + Math.random() * 0.15; // Simulate confidencelibs/maat/knowledge/src/document-ingestion-pipeline.ts:259—.update(${key}|${Date.now()}|${Math.random()})libs/maat/knowledge/src/knowledge-access-analytics.ts:295—access-${input.knowledgeItemId}-${input.userId}-${now}-${Math.random()}libs/maat/knowledge/src/knowledge-access-analytics.ts:327—const decisionId = makeId(decision-${input.userId}-${now}-${Math.random()});libs/maat/risk/src/business-continuity.ts:346—const functionId = makeId(bcf-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/risk/src/business-continuity.ts:389—pbk-${input.company}-${input.scenarioType}-${Date.now()}-${Math.random()}libs/maat/risk/src/business-continuity.ts:398—stepId: makeId(step-${s.description.slice(0, 20)}-${Math.random()}),libs/maat/risk/src/business-continuity.ts:658—stepId: makeId(step-activate-1-${Math.random()}),libs/maat/risk/src/business-continuity.ts:671—stepId: makeId(step-activate-2-${Math.random()}),libs/maat/risk/src/business-continuity.ts:684—stepId: makeId(step-activate-3-${Math.random()}),libs/maat/risk/src/business-continuity.ts:704—stepId: makeId(step-respond-1-${Math.random()}),libs/maat/risk/src/business-continuity.ts:717—stepId: makeId(step-respond-2-${Math.random()}),libs/maat/risk/src/business-continuity.ts:730—stepId: makeId(step-respond-3-${Math.random()}),libs/maat/risk/src/business-continuity.ts:750—stepId: makeId(step-short-1-${Math.random()}),libs/maat/risk/src/business-continuity.ts:763—stepId: makeId(step-short-2-${Math.random()}),libs/maat/risk/src/business-continuity.ts:776—stepId: makeId(step-short-3-${Math.random()}),libs/maat/risk/src/business-continuity.ts:796—stepId: makeId(step-long-1-${Math.random()}),libs/maat/risk/src/business-continuity.ts:809—stepId: makeId(step-long-2-${Math.random()}),libs/maat/risk/src/business-continuity.ts:825—stepId: makeId(step-normal-1-${Math.random()}),libs/maat/risk/src/business-continuity.ts:839—stepId: makeId(step-normal-2-${Math.random()}),libs/maat/risk/src/business-continuity.ts:893—templateId: makeId(tmpl-activation-${Math.random()}),libs/maat/risk/src/business-continuity.ts:902—templateId: makeId(tmpl-update-${Math.random()}),libs/maat/risk/src/business-continuity.ts:911—templateId: makeId(tmpl-resolve-${Math.random()}),libs/maat/risk/src/climate-risk.ts:521—const facilityId = makeId(fac-${input.name}-${input.company}-${Date.now()}-${Math.random()});libs/maat/risk/src/climate-risk.ts:769—analysisId: makeId(portfolio-climate-${now}-${Math.random()}),libs/maat/risk/src/commodity-price-risk.ts:822—cpr-${input.company}-${input.commodity}-${Date.now()}-${Math.random()}libs/maat/risk/src/commodity-price-risk.ts:872—const simulationId = makeId(sim-${commodity}-${now}-${Math.random()});libs/maat/risk/src/commodity-price-risk.ts:1064—const analysisId = makeId(portfolio-${now}-${Math.random()});libs/maat/risk/src/currency-risk-hedging.ts:434—exp-${input.company}-${input.foreignCurrency}-${Date.now()}-${Math.random()}libs/maat/risk/src/currency-risk-hedging.ts:629—const resultId = makeId(opt-portfolio-${now}-${Math.random()});libs/maat/risk/src/cybersecurity-risk.ts:484—const systemId = makeId(sys-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/risk/src/cybersecurity-risk.ts:537—const vulnId = makeId(vuln-${input.systemId}-${input.title}-${Date.now()}-${Math.random()});libs/maat/risk/src/emerging-risk-radar.ts:506—const signalId = makeId(sig-${input.title.slice(0, 30)}-${Date.now()}-${Math.random()});libs/maat/risk/src/emerging-risk-radar.ts:586—const riskId = makeId(erisk-${input.name.slice(0, 30)}-${Date.now()}-${Math.random()});libs/maat/risk/src/insurance-portfolio.ts:414—const profileId = makeId(prof-${input.company}-${Date.now()}-${Math.random()});libs/maat/risk/src/insurance-portfolio.ts:450—pol-${input.company}-${input.coverageType}-${Date.now()}-${Math.random()}libs/maat/risk/src/insurance-portfolio.ts:499—const resultId = makeId(opt-ins-${now}-${Math.random()});libs/maat/risk/src/key-risk-indicators.ts:305—const kriId = makeId(kri-${input.name}-${input.company}-${Date.now()}-${Math.random()});libs/maat/risk/src/key-risk-indicators.ts:353—const dataPointId = makeId(dp-${input.kriId}-${timestamp}-${Math.random()});libs/maat/risk/src/key-risk-indicators.ts:432—alertId: makeId(alert-${kri.kriId}-${dataPoint.timestamp}-${Math.random()}),libs/maat/risk/src/political-risk.ts:574—const assessmentId = makeId(pr-${country}-${now}-${Math.random()});libs/maat/risk/src/risk-appetite.ts:303—const limitId = makeId(lim-${input.company}-${input.name}-${Date.now()}-${Math.random()});libs/maat/risk/src/risk-appetite.ts:359—const observationId = makeId(obs-${input.limitId}-${now}-${Math.random()});libs/maat/risk/src/risk-appetite.ts:579—breachId: makeId(breach-${limit.limitId}-${Date.now()}-${Math.random()}),libs/maat/risk/src/supply-chain-risk.ts:344—const nodeId = makeId(node-${input.name}-${input.company}-${Date.now()}-${Math.random()});libs/maat/risk/src/supply-chain-risk.ts:394—link-${input.sourceNodeId}-${input.targetNodeId}-${Date.now()}-${Math.random()}libs/maat/risk/src/supply-chain-risk.ts:432—const disruptionId = makeId(disrupt-${input.name}-${Date.now()}-${Math.random()});libs/maat/risk/src/value-at-risk.ts:468—const positionId = makeId(pos-${input.name}-${Date.now()}-${Math.random()});libs/maat/risk/src/value-at-risk.ts:642—const resultId = makeId(var-param-${now}-${Math.random()});libs/maat/risk/src/value-at-risk.ts:741—const resultId = makeId(var-hist-${now}-${Math.random()});libs/maat/risk/src/value-at-risk.ts:842—const resultId = makeId(var-mc-${now}-${Math.random()});libs/maat/sdk/src/typed-client.ts:228—durationMs: Math.floor(Math.random() * 50) + 10,libs/maya/client/src/crash-reporting-and-diagnostics.ts:341—random: config.random ?? Math.random,libs/maya/database/src/data-anonymization.ts:50—const noise = (Math.random() * 2 - 1) * magnitude * Math.abs(value);libs/maya/documentation/src/api-documentation/interactive-api-explorer.ts:67—duration_ms: Math.random() * 50 + 5,libs/maya/documentation/src/tutorials-guides/deployment-guide.ts:119—return { status: 'healthy', activeUsers: Math.floor(Math.random() * 100), errorRate_pct: 0.1 };libs/maya/testing/src/integration-testing/load-testing.ts:35—let r = Math.random() * totalWeight;libs/maya/testing/src/integration-testing/world-streaming-tests.ts:62—entities: Math.floor(Math.random() * 20),libs/maya/tooling/src/asset-tools/batch-processing-tools.ts:83—if (type === 'Validate' && Math.random() < 0.05) {libs/maya/tooling/src/profiling/gpu-profiler-integration.ts:59—return baseTimes[stage] * (0.9 + Math.random() * 0.2);libs/maya/tooling/src/profiling/telemetry-collection.ts:68—if (Math.random() > this.config.sampleRate) return;libs/maya/tooling/src/world-editor/foliage-painting-tools.ts:44—const angle = Math.random() * Math.PI * 2;libs/maya/tooling/src/world-editor/foliage-painting-tools.ts:45—const r = Math.random() * radius;libs/maya/tooling/src/world-editor/foliage-painting-tools.ts:75—const scale = brush.scaleMin + Math.random() * (brush.scaleMax - brush.scaleMin);libs/maya/tooling/src/world-editor/foliage-painting-tools.ts:76—const rotation = brush.randomRotation ? { y_deg: Math.random() * 360 } : { y_deg: 0 };libs/maya/tooling/src/world-editor/play-in-editor-mode.ts:79—physicsMs: 1.5 + Math.random() * 0.5,libs/maya/tooling/src/world-editor/play-in-editor-mode.ts:80—aiMs: 0.8 + Math.random() * 0.2,libs/meditation/player/src/queue.ts:786—const j = Math.floor(Math.random() * (i + 1));libs/meditation/session/src/analytics.ts:554—if (Math.random() > this.config.sampleRate) {libs/metis/ab-testing/src/variant-assigner/variant-assigner.ts:315—const randomValue = Math.random();libs/metis/adaptive/src/adaptation/content-selector.ts:59—this.randomFn = randomFn ?? Math.random;libs/metis/agents/src/agents/research-agent.ts:263—reliabilityScore: tmpl.baseReliability + (Math.random() > 0.5 ? 5 : -5),libs/metis/integrations/src/yemaya-integration.ts:691—const quality = Math.round(Math.max(30, 85 - positionPenalty + Math.random() * 10));libs/metis/knowledge-graph/src/applications/visualization-data.ts:122—x: Math.random() * this.config.width,libs/metis/knowledge-graph/src/applications/visualization-data.ts:123—y: Math.random() * this.config.height,libs/metis/knowledge-graph/src/operations/graph-analytics.ts:257—const j = Math.floor(Math.random() * (i + 1));libs/metis/model-registry/src/task-router/task-router.ts:642—let roll = Math.random() * totalWeight;libs/metis/multimedia/src/video/gpu-worker-pool.ts:213—idleWorker.memoryUsageMB = Math.min(this.config.memoryLimitMB, 200 + Math.random() * 300);libs/metis/prompt-management/src/few-shot-library/few-shot-library.ts:309—const j = Math.floor(Math.random() * (i + 1));libs/metis/prompt-management/src/few-shot-library/few-shot-library.ts:330—let threshold = Math.random() * totalWeight;libs/mnemosyne/core/src/ai-infrastructure.ts:2060—const factor = Math.random() > 0.5 ? 10 : 0.1;libs/mnemosyne/core/src/assessment.ts:383—const r = rng !== undefined ? rng : Math.random();libs/mnemosyne/experience/src/experience.ts:335—if (Math.random() < epsilon) {libs/mnemosyne/linguistics/src/linguistics.ts:2407—const vocd = Math.random() * 30 + 60; // D approximationlibs/mnemosyne/linguistics/src/linguistics.ts:2430—return { word, ...entry, strength: 0.7 + Math.random() * 0.3 };libs/neith/integration-isis/src/generation-pipeline/ab-testing.ts:282—const rand = seed !== undefined ? (seed % 1000) / 1000 : Math.random();libs/neith/integration-isis/src/types.ts:278—seed: req.seed ?? Math.floor(Math.random() * 0xffffffff),libs/neith/integration-isis/src/types.ts:299—embeddings: inputs.map(() => Array.from({ length: dims }, () => Math.random() * 2 - 1)),libs/neith/integration-maya/src/metaverse-platform/social-features.ts:213—return${prefix}_${now.getTime()}_${Math.random()`libs/neith/integration-yemaya/src/dcc-tools/sculptor-adapter.ts:411—seed: Math.floor(Math.random() * 2 ** 31),libs/neith/observability/src/logging/correlation.ts:181—bytes[i] = Math.floor(Math.random() * 256);libs/neith/observability/src/logging/correlation.ts:205—for (let i = 0; i < 16; i++) bytes[i] = Math.floor(Math.random() * 256);libs/neith/observability/src/logging/correlation.ts:217—for (let i = 0; i < 8; i++) bytes[i] = Math.floor(Math.random() * 256);libs/neith/qa/src/code-quality/duplication.ts:203—() => Math.floor(Math.random() * (MinHashDetector.LARGE_PRIME - 1)) + 1libs/neith/qa/src/code-quality/duplication.ts:206—Math.floor(Math.random() * MinHashDetector.LARGE_PRIME)libs/neith/qa/src/code-quality/security.ts:177—description: 'Math.random() used for security-sensitive operations',libs/neith/qa/src/code-quality/security.ts:192—'Math.random() used in security-sensitive context — not cryptographically secure',libs/neith/testing/src/e2e/load.ts:509—let rand = Math.random() * total;libs/neith/testing/src/performance/latency.ts:161—if (Math.random() <= this.samplingRate) {libs/neith/testing/src/unit/factories.ts:247—const local =${fake.firstName().toLowerCase()}.${fake.lastName().toLowerCase()}${Math.floor(Math.random() * 100)};libs/neith/testing/src/unit/factories.ts:255—integer: (min = 0, max = 1000): number => min + Math.floor(Math.random() * (max - min + 1)),libs/neith/testing/src/unit/factories.ts:258—float: (min = 0, max = 1): number => min + Math.random() * (max - min),libs/neith/testing/src/unit/factories.ts:261—boolean: (): boolean => Math.random() > 0.5,libs/neith/testing/src/unit/factories.ts:265—return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));libs/neith/testing/src/unit/factories.ts:280—const octet = () => Math.floor(Math.random() * 256);libs/neith/testing/src/unit/factories.ts:286— ``#${Math.floor(Math.random() * 0xffffff)`libs/neith/testing/src/unit/factories.ts:315—phone: (): string =>+1${Math.floor(Math.random() * 9000000000 + 1000000000)},libs/neith/testing/src/unit/factories.ts:318—zipCode: (): string => String(Math.floor(Math.random() * 90000 + 10000)),libs/neith/testing/src/unit/fixtures.ts:223—const serverPort = port ?? 3000 + Math.floor(Math.random() * 5000);libs/nisaba/annotations/src/annotation-exports.ts:64—Math.floor(Math.random() * 0x10000)libs/nisaba/annotations/src/standoff-annotations.ts:49—Math.floor(Math.random() * 0x10000)libs/nisaba/criticism/src/stemmatic-analysis.ts:1714—config.randomSeed !== undefined ? seededRandom(config.randomSeed) : () => Math.random();libs/nisaba/translations/src/alignment/manual-alignment.ts:268—Math.floor(Math.random() * 0x10000)libs/nous/audio/src/streaming-asr.ts:798—const entropy = Math.floor(stableUnit(streaming:${now}:${Math.random()}) * 1e9)libs/nous/llm/src/action-selection.ts:297—this.rng = options.rng ?? (() => Math.random());libs/nous/llm/src/agent-delegation.ts:1015—const index = Math.floor(Math.random() * ranked.length);libs/nous/llm/src/error-recovery.ts:328—this.rng = options.rng ?? (() => Math.random());libs/nous/llm/src/tool-selection.ts:305—this.rng = options.rng ?? (() => Math.random());libs/nyx/audio/sonification/src/sonification.ts:586—audioPeriod = 500 + Math.random() * 2000;libs/nyx/catalogs/deep-sky/messier/src/index.ts:631—const index = Math.floor(Math.random() * this.objects.length);libs/nyx/catalogs/deep-sky/pulsars/src/index.ts:210—const index = Math.floor(Math.random() * ALL_PULSARS.length);libs/nyx/catalogs/deep-sky/snr/src/index.ts:690—const index = Math.floor(Math.random() * ALL_SNRS.length);libs/nyx/catalogs/supernovae/src/historical.ts:2246—const index = Math.floor(Math.random() * HISTORICAL_SUPERNOVAE.length);libs/nyx/education/quiz-system/src/quiz-service.ts:760—const j = Math.floor(Math.random() * (i + 1));libs/nyx/education/quiz-system/src/state.ts:866—const j = Math.floor(Math.random() * (i + 1));libs/nyx/integrations/stellarium/src/utils.ts:382—const r = (Math.random() * 16) | 0;libs/nyx/integrations/telescope/src/alpaca-client.ts:247—clientId: config.clientId ?? Math.floor(Math.random() * 65536),libs/nyx/lilith-integration/src/lilith-integration.ts:847—const index = Math.floor(Math.random() * COSMIC_VISUALIZATIONS.length);libs/nyx/lilith-integration/src/lilith-integration.ts:895—const index = Math.floor(Math.random() * SPACE_PARALLELS.length);libs/nyx/lilith-integration/src/lilith-integration.ts:986—const index = Math.floor(Math.random() * allFacts.length);libs/nyx/orbital/src/n-body.ts:1888—x = (Math.random() * 2 - 1) * radius;libs/nyx/orbital/src/n-body.ts:1889—y = (Math.random() * 2 - 1) * radius;libs/nyx/orbital/src/n-body.ts:1890—z = (Math.random() * 2 - 1) * radius;libs/nyx/orbital/src/n-body.ts:1919—const phi = Math.acos(2 * Math.random() - 1);libs/nyx/orbital/src/n-body.ts:1920—const v = velocityScale * Math.random();libs/nyx/renderer/background/src/cmb.ts:1614—const theta1 = Math.random() * PI;libs/nyx/renderer/background/src/cmb.ts:1615—const phi1 = Math.random() * TWO_PI - PI; // [-π, π]libs/nyx/renderer/hdr/src/tonemapping.ts:423—const noise = () => (Math.random() + Math.random() - 1) / levels;libs/nyx/renderer/stars/src/point-stars.ts:1106—const ra = Math.random() * Math.PI * 2;libs/nyx/renderer/stars/src/point-stars.ts:1107—const dec = Math.asin(Math.random() * 2 - 1);libs/nyx/renderer/stars/src/point-stars.ts:1111—const mag = minMag + Math.pow(Math.random(), 0.5) * magRange;libs/nyx/renderer/stars/src/point-stars.ts:1114—const temp = 3000 + Math.pow(Math.random(), 2) * 27000;libs/oshun/domain-tara/src/ritual-completion-events.ts:185— ``tara-ritual-completed-${ritualId}-${Date.parse(occurredAt).toString(36)}-${Math.random()`libs/oya/core/src/advanced-slam-vio.ts:2928—patchDescriptor: Math.random(),libs/oya/core/src/airsim-integration.ts:298—const elevation = -0.3 + 0.6 * Math.random();libs/oya/core/src/airsim-integration.ts:299—const range = maxRange * (0.3 + 0.7 * Math.random());libs/oya/core/src/airsim-integration.ts:305—intensity: Math.floor(Math.random() * 256),libs/oya/core/src/body-reconstruction-3d.ts:211—const radius = 0.03 + Math.random() * 0.02;libs/oya/core/src/camera-gimbal-api.ts:146—sizeBytes: 5_000_000 + Math.floor(Math.random() * 3_000_000),libs/oya/core/src/consensus-algorithms.ts:1297—this.rng = rng ?? Math.random;libs/oya/core/src/consensus-algorithms.ts:2519—this.rng = rng ?? Math.random;libs/oya/core/src/consensus-algorithms.ts:3186—this.rng = rng ?? Math.random;libs/oya/core/src/depth-sensors.ts:2384—const i0 = Math.floor(Math.random() * points.length);libs/oya/core/src/depth-sensors.ts:2385—let i1 = Math.floor(Math.random() * points.length);libs/oya/core/src/depth-sensors.ts:2386—let i2 = Math.floor(Math.random() * points.length);libs/oya/core/src/depth-sensors.ts:2527—const i0 = Math.floor(Math.random() * points.length);libs/oya/core/src/depth-sensors.ts:2528—const i1 = (i0 + 1 + Math.floor(Math.random() * (points.length - 1))) % points.length;libs/oya/core/src/depth-sensors.ts:2529—let i2 = (i0 + 2 + Math.floor(Math.random() * (points.length - 2))) % points.length;libs/oya/core/src/depth-sensors.ts:2651—const i0 = Math.floor(Math.random() * remainingPoints.length);libs/oya/core/src/depth-sensors.ts:2653—(i0 + 1 + Math.floor(Math.random() * (remainingPoints.length - 1))) %libs/oya/core/src/depth-sensors.ts:2656—(i0 + 2 + Math.floor(Math.random() * (remainingPoints.length - 2))) %libs/oya/core/src/edge-deployment.ts:2327—return Math.random() * 100 < this.canaryPercentage ? this.canaryModelId : this.stableModelId;libs/oya/core/src/enterprise-platform.ts:1711—return${s(8)}-${s(4)}-4${s(3)}-${hex[8 + Math.floor(Math.random() * 4)]}${s(3)}-${s(12)};libs/oya/core/src/enterprise-platform.ts:3761—const swapTimeMs = 45000 + Math.random() * 15000; // 45-60 secondslibs/oya/core/src/gnn-swarm-intelligence.ts:3913—const episodeLength = 50 + Math.floor(Math.random() * 150);libs/oya/core/src/gnn-swarm-intelligence.ts:3918—const win = Math.random() < progressFactor * 0.7;libs/oya/core/src/gnn-swarm-intelligence.ts:3921—const epReturn = win ? 20 + Math.random() * 5 : -10 + Math.random() * 15;libs/oya/core/src/gnn-swarm-intelligence.ts:3925—totalDeaths += Math.floor(this.config.numAgents * (1 - progressFactor * 0.6) * Math.random());libs/oya/core/src/gnn-swarm-intelligence.ts:4492—const idx = Math.floor(Math.random() * available.length);libs/oya/core/src/gps-navigation.ts:4973—const elevDeg = 10 + Math.random() * 70;libs/oya/core/src/gps-navigation.ts:4974—const azDeg = (i / n) * 360 + Math.random() * 30;libs/oya/core/src/gps-navigation.ts:4976—const cnoDB = 25 + elevDeg * 0.3 + Math.random() * 10;libs/oya/core/src/inter-drone-communication.ts:1315—this.sendSequenceNum = Math.floor(Math.random() * 65536);libs/oya/core/src/mission-execution.ts:138—Math.floor(Math.random() * 16 ** n)libs/oya/core/src/mission-execution.ts:141—return${hex(8)}-${hex(4)}-4${hex(3)}-${(8 + Math.floor(Math.random() * 4)).toString(16)}${hex(3)}-${hex(12)};libs/oya/core/src/model-inference.ts:275—this.cudaStreamId = Math.floor(Math.random() * 65536);libs/oya/core/src/model-inference.ts:641—data[i] = Math.random() * 0.5;libs/oya/core/src/model-inference.ts:770—data[i] = Math.random() * 0.3;libs/oya/core/src/model-inference.ts:813—data[i] = Math.random() * 0.3;libs/oya/core/src/model-inference.ts:1741—for (let i = 0; i < elements; i++) data[i] = Math.floor(Math.random() * 256);libs/oya/core/src/model-inference.ts:1745—for (let i = 0; i < elements; i++) data[i] = Math.floor(Math.random() * 256) - 128;libs/oya/core/src/model-inference.ts:1749—for (let i = 0; i < elements; i++) data[i] = Math.random() * 2 - 1;libs/oya/core/src/model-optimization.ts:985—kernelSize: ss.kernelSizes[Math.floor(Math.random() * ss.kernelSizes.length)],libs/oya/core/src/model-optimization.ts:986—expansion: ss.expansionRatios[Math.floor(Math.random() * ss.expansionRatios.length)],libs/oya/core/src/model-optimization.ts:987—channels: ss.channelMultipliers[Math.floor(Math.random() * ss.channelMultipliers.length)],libs/oya/core/src/model-optimization.ts:988—depth: ss.depthOptions[Math.floor(Math.random() * ss.depthOptions.length)],libs/oya/core/src/model-optimization.ts:989—useSE: ss.includeSeBlock && Math.random() > 0.5,libs/oya/core/src/model-optimization.ts:990—useSkip: ss.includeSkipConnections && Math.random() > 0.3,libs/oya/core/src/model-optimization.ts:1013—const idx = Math.floor(Math.random() * this.population.length);libs/oya/core/src/model-optimization.ts:1025—const r = Math.random();libs/oya/core/src/model-optimization.ts:1028—mutated.kernelSize = ss.kernelSizes[Math.floor(Math.random() * ss.kernelSizes.length)];libs/oya/core/src/model-optimization.ts:1031—ss.expansionRatios[Math.floor(Math.random() * ss.expansionRatios.length)];libs/oya/core/src/model-optimization.ts:1034—ss.channelMultipliers[Math.floor(Math.random() * ss.channelMultipliers.length)];libs/oya/core/src/model-optimization.ts:1036—mutated.depth = ss.depthOptions[Math.floor(Math.random() * ss.depthOptions.length)];libs/oya/core/src/modern-simulation-platforms.ts:530—this.ros2Bridge.latencyMs = 0.1 + Math.random() * 0.5;libs/oya/core/src/modern-simulation-platforms.ts:2569—const targetSpeed = maxSpeed * (0.5 + Math.random() * 0.5);libs/oya/core/src/multi-camera-coordination.ts:698—phaseOffset: initialPhaseOffset ?? Math.random() * 0.5 - 0.25,libs/oya/core/src/observability.ts:210—bytes[i] = Math.floor(Math.random() * 256);libs/oya/core/src/observability.ts:876—const sampled = parentContext?.sampled ?? Math.random() < this.config.sampleRate;libs/oya/core/src/obstacle-avoidance.ts:2443—const startIdx = Math.floor(Math.random() * len);libs/oya/core/src/path-planning.ts:794—this.bounds.min.x + Math.random() * (this.bounds.max.x - this.bounds.min.x),libs/oya/core/src/path-planning.ts:795—this.bounds.min.y + Math.random() * (this.bounds.max.y - this.bounds.min.y),libs/oya/core/src/path-planning.ts:796—this.bounds.min.z + Math.random() * (this.bounds.max.z - this.bounds.min.z)libs/oya/core/src/path-planning.ts:848—const sample = Math.random() < this.goalBias ? goal : this.sampleRandom();libs/oya/core/src/path-planning.ts:923—const sample = Math.random() < this.goalBias ? goal : this.sampleRandom();libs/oya/core/src/path-planning.ts:1013—this.bounds.min.x + Math.random() * (this.bounds.max.x - this.bounds.min.x),libs/oya/core/src/path-planning.ts:1014—this.bounds.min.y + Math.random() * (this.bounds.max.y - this.bounds.min.y),libs/oya/core/src/path-planning.ts:1015—this.bounds.min.z + Math.random() * (this.bounds.max.z - this.bounds.min.z)libs/oya/core/src/path-planning.ts:1191—bx = 2 * Math.random() - 1;libs/oya/core/src/path-planning.ts:1192—by = 2 * Math.random() - 1;libs/oya/core/src/path-planning.ts:1193—bz = 2 * Math.random() - 1;libs/oya/core/src/path-planning.ts:1226—if (Math.random() < this.goalBias) {libs/oya/core/src/path-planning.ts:1344—this.bounds.min.x + Math.random() * (this.bounds.max.x - this.bounds.min.x),libs/oya/core/src/path-planning.ts:1345—this.bounds.min.y + Math.random() * (this.bounds.max.y - this.bounds.min.y),libs/oya/core/src/path-planning.ts:1346—this.bounds.min.z + Math.random() * (this.bounds.max.z - this.bounds.min.z)libs/oya/core/src/path-planning.ts:1768—const angle = Math.random() * 2 * Math.PI;libs/oya/core/src/path-planning.ts:2006—vx = (2 * Math.random() - 1) * maxSpeed;libs/oya/core/src/path-planning.ts:2007—vy = (2 * Math.random() - 1) * maxSpeed;libs/oya/core/src/path-planning.ts:2008—vz = (2 * Math.random() - 1) * maxSpeed;libs/oya/core/src/path-planning.ts:2075—vx = (2 * Math.random() - 1) * agent.maxSpeed;libs/oya/core/src/path-planning.ts:2076—vy = (2 * Math.random() - 1) * agent.maxSpeed;libs/oya/core/src/path-planning.ts:2077—vz = (2 * Math.random() - 1) * agent.maxSpeed;libs/oya/core/src/path-planning.ts:2803—this.bounds.min.x + Math.random() * (this.bounds.max.x - this.bounds.min.x),libs/oya/core/src/path-planning.ts:2804—this.bounds.min.y + Math.random() * (this.bounds.max.y - this.bounds.min.y),libs/oya/core/src/path-planning.ts:2805—this.bounds.min.z + Math.random() * (this.bounds.max.z - this.bounds.min.z)libs/oya/core/src/path-planning.ts:2884—const sample = Math.random() < 0.1 ? goalState : this.sampleRandomState();libs/oya/core/src/physics-simulation.ts:828—if (Math.random() < failure.intermittentProbability) result[idx] = 0;libs/oya/core/src/physics-simulation.ts:1125—randomSeed: Math.floor(Math.random() * 2147483647),libs/oya/core/src/physics-simulation.ts:1178—conditions[name] = min + Math.random() * (max - min);libs/oya/core/src/sam-integration.ts:4076—confMap[i] = classMap[i] === cls ? 0.85 + Math.random() * 0.15 : Math.random() * 0.05;libs/oya/core/src/sam-integration.ts:4606—const range: [number, number] = [-(2 + Math.random()), 2 + Math.random()];libs/oya/core/src/sapiens-integration.ts:1138—const x = clamp(offsetX + spread * Math.sin(angle) * (0.8 + Math.random() * 0.4), 0, 1);libs/oya/core/src/sapiens-integration.ts:1139—const y = clamp(offsetY + spread * t * (0.9 + Math.random() * 0.2), 0, 1);libs/oya/core/src/sapiens-integration.ts:1140—const conf = clamp(baseConf * (0.85 + Math.random() * 0.15), 0, 1);libs/oya/core/src/sapiens-integration.ts:1284—const conf = clamp(baseConf * (0.88 + Math.random() * 0.12), 0, 1);libs/oya/core/src/sapiens-integration.ts:2289—const conf = clamp(0.7 + Math.random() * 0.25, 0, 1);libs/oya/core/src/sapiens-integration.ts:2632—const personCount = Math.min(maxPersons, 1 + Math.floor(Math.random() * 3));libs/oya/core/src/sapiens-integration.ts:2777—const faceCount = Math.min(maxFaces, 1 + Math.floor(Math.random() * 2));libs/oya/core/src/sapiens-integration.ts:3310—const trainLoss = 2.5 * Math.exp(-3 * progress) + 0.1 + Math.random() * 0.05;libs/oya/core/src/sapiens-integration.ts:3311—const valLoss = trainLoss * (1.1 + Math.random() * 0.1);libs/oya/core/src/sapiens-integration.ts:3320—valMetric = clamp(0.4 + progress * 0.45 + Math.random() * 0.03, 0, 1);libs/oya/core/src/sapiens-integration.ts:3324—valMetric = clamp(3.5 - progress * 2.5 + Math.random() * 0.2, 0.5, 5);libs/oya/core/src/sapiens-integration.ts:3328—valMetric = clamp(0.35 + progress * 0.4 + Math.random() * 0.02, 0, 1);libs/oya/core/src/sapiens-integration.ts:3332—valMetric = clamp(0.25 - progress * 0.18 + Math.random() * 0.01, 0.05, 0.5);libs/oya/core/src/sapiens-integration.ts:3336—valMetric = clamp(25 - progress * 18 + Math.random(), 5, 30);libs/oya/core/src/sapiens-integration.ts:3398—rotation: (Math.random() * 2 - 1) * aug.rotationRange,libs/oya/core/src/sapiens-integration.ts:3399—scale: aug.scaleRange[0] + Math.random() * (aug.scaleRange[1] - aug.scaleRange[0]),libs/oya/core/src/sapiens-integration.ts:3400—perspectiveWarp: Math.random() * aug.perspectiveStrength,libs/oya/core/src/sapiens-integration.ts:3401—horizontalFlip: Math.random() < aug.horizontalFlipProb,libs/oya/core/src/sapiens-integration.ts:3402—colorJitter: Math.random() * aug.colorJitter,libs/oya/core/src/sapiens-integration.ts:3403—blur: Math.random() < aug.blurProb,libs/oya/core/src/sapiens-integration.ts:3405—aug.altitudeRange[0] + Math.random() * (aug.altitudeRange[1] - aug.altitudeRange[0]),libs/oya/core/src/sapiens-integration.ts:3406—motionBlur: Math.random() < aug.motionBlurProb,libs/oya/core/src/sapiens-integration.ts:3407—lensDistortion: (Math.random() * 2 - 1) * aug.lensDistortion,libs/oya/core/src/sapiens-integration.ts:4045—const buildTimeMs = Math.round(spec.parametersBillions * 30000 + Math.random() * 5000);libs/oya/core/src/sdk-core.ts:625—const jittered = raw + raw * 0.1 * Math.random();libs/oya/core/src/sitl-integration-framework.ts:335—uuid += hex[(Math.random() * 4) | 8];libs/oya/core/src/sitl-integration-framework.ts:337—uuid += hex[(Math.random() * 16) | 0];libs/oya/core/src/sitl-integration-framework.ts:1303—if (this.packetLossRate > 0 && Math.random() < this.packetLossRate) {libs/oya/core/src/sitl-integration-framework.ts:1319—if (this.packetLossRate > 0 && Math.random() < this.packetLossRate) {libs/oya/core/src/swarm-collision-avoidance.ts:1436—this.rng = rngSeed ?? Math.random;libs/oya/core/src/swarm-collision-avoidance.ts:2747—this.rng = rng ?? Math.random;libs/oya/core/src/task-allocation.ts:1087—const genes = this.tasks.map(() => Math.floor(Math.random() * this.drones.length));libs/oya/core/src/task-allocation.ts:1123—const point = Math.floor(Math.random() * this.tasks.length);libs/oya/core/src/task-allocation.ts:1131—if (Math.random() < this.mutationRate) {libs/oya/core/src/task-allocation.ts:1132—chrom.genes[i] = Math.floor(Math.random() * this.drones.length);libs/oya/core/src/task-allocation.ts:1141—const idx = Math.floor(Math.random() * population.length);libs/oya/core/src/task-allocation.ts:1300—const position = Array.from({ length: dim }, () => Math.random() * maxVal);libs/oya/core/src/task-allocation.ts:1320—const r1 = Math.random();libs/oya/core/src/task-allocation.ts:1321—const r2 = Math.random();libs/oya/core/src/task-allocation.ts:1463—if (Math.random() < this.epsilon) {libs/oya/core/src/task-allocation.ts:1466—action[t] = Math.floor(Math.random() * this.drones.length);libs/oya/core/src/task-allocation.ts:1524—const idx = Math.floor(Math.random() * this.replayBuffer.length);libs/oya/core/src/video-streaming.ts:1059—const handshakeLatency = 50 + Math.random() * 150;libs/oya/core/src/video-streaming.ts:1521—const lossRate = 0.001 + Math.random() * 0.01;libs/oya/core/src/video-streaming.ts:1529—this.rttMs = 10 + Math.random() * 40;libs/oya/core/src/yolov12-integration.ts:2428—const ap = this.bestMAP50 * difficulty * (0.9 + Math.random() * 0.2);libs/psyche/avatar-expressions/src/micro-expressions.ts:131—const duration = minDuration + Math.random() * (maxDuration - minDuration);libs/psyche/avatar-expressions/src/micro-expressions.ts:344—this.generator.trigger(this.suppressedEmotion, 0.5 + Math.random() * 0.3);libs/psyche/avatar-expressions/src/micro-expressions.ts:470—return min + Math.random() * (max - min);libs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:271—const phi = Math.acos(2 * Math.random() - 1);libs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:272—const theta = 2 * Math.PI * Math.random();libs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:305—colors[i] = 0.5 + Math.random() * 0.5; // Random colorslibs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:369—const idx1 = Math.floor(Math.random() * points.length);libs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:370—const idx2 = Math.floor(Math.random() * points.length);libs/psyche/avatar-isis-integration/src/mesh-to-gaussian.ts:375—const t = Math.random();libs/psyche/avatar-training/src/backend.ts:100—gaussianCount: this.metrics!.gaussianCount + Math.floor(Math.random() * 1000),libs/psyche/avatar-training/src/preprocessing.ts:706—.map(() => Math.random() * 0.1)libs/psyche/avatar-training/src/preprocessing.ts:721—const isValid = Math.random() > 0.05; // 95% valid frameslibs/psyche/avatar-training/src/preprocessing.ts:729—x: 200 + Math.random() * 50,libs/psyche/avatar-training/src/preprocessing.ts:730—y: 100 + Math.random() * 30,libs/psyche/avatar-training/src/preprocessing.ts:745—.map(() => [300 + Math.random() * 100, 300 + Math.random() * 100]) as [number, number][],libs/psyche/avatar-training/src/preprocessing.ts:766—.map(() => Math.random() * 0.1),libs/psyche/avatar-training/src/preprocessing.ts:773—loss: 0.001 + Math.random() * 0.001,libs/psyche/avatar-training/src/preprocessing.ts:774—reprojectionError: 1 + Math.random() * 0.5,libs/psyche/avatar-training/src/preprocessing.ts:789—sharpness: 80 + Math.random() * 40,libs/psyche/avatar-training/src/preprocessing.ts:790—brightness: 100 + Math.random() * 50,libs/psyche/avatar-training/src/preprocessing.ts:791—contrast: 50 + Math.random() * 20,libs/psyche/browser-automation/src/utils.ts:654—return Math.floor(Math.random() * (max - min + 1)) + min;libs/psyche/browser-automation/src/utils.ts:662—x: box.x + Math.random() * box.width,libs/psyche/browser-automation/src/utils.ts:663—y: box.y + Math.random() * box.height,libs/psyche/emotion-recognition/src/learned-fusion.ts:2403—const j = Math.floor(Math.random() * (i + 1));libs/psyche/gaze-control/src/conversation.ts:194—if (Math.random() < threshold) {libs/psyche/gaze-control/src/conversation.ts:203—if (authority > 0 && Math.random() < this.authorityDownwardAversionRatio * authority) {libs/psyche/gaze-control/src/conversation.ts:217—if (Math.random() < threshold) {libs/psyche/gaze-control/src/conversation.ts:225—if (Math.random() < mouthRatio) {libs/psyche/gaze-control/src/conversation.ts:233—if (authority > 0 && Math.random() < this.authorityDownwardAversionRatio * authority) {libs/psyche/gaze-control/src/conversation.ts:246—if (Math.random() < threshold) {libs/psyche/gaze-control/src/conversation.ts:261—if (Math.random() < 0.5) {libs/psyche/gaze-control/src/fixation.ts:122—let baseDuration = range[0] + Math.random() * (range[1] - range[0]);libs/psyche/gaze-control/src/fixation.ts:263—const baseDuration = range[0] + Math.random() * (range[1] - range[0]);libs/psyche/gaze-control/src/microsaccade.ts:84—const freq = minFreq + Math.random() * (maxFreq - minFreq);libs/psyche/gaze-control/src/microsaccade.ts:88—interval *= 0.7 + Math.random() * 0.6;libs/psyche/gaze-control/src/microsaccade.ts:100—Math.random() * (this.params.maxAmplitude - this.params.minAmplitude);libs/psyche/gaze-control/src/microsaccade.ts:103—const angle = Math.random() * 2 * Math.PI;libs/psyche/gaze-control/src/microsaccade.ts:113—Math.random() * (this.params.durationRange[1] - this.params.durationRange[0]);libs/psyche/gaze-control/src/microsaccade.ts:290—return params.minAmplitude + Math.random() * (params.maxAmplitude - params.minAmplitude);libs/psyche/gaze-control/src/microsaccade.ts:297—return Math.random() * 2 * Math.PI;libs/psyche/gaze-control/src/targets.ts:118—yaw = -0.5 - Math.random() * 0.3; // -0.5 to -0.8 (30-45 degrees left)libs/psyche/gaze-control/src/targets.ts:123—yaw = 0.5 + Math.random() * 0.3; // 0.5 to 0.8 (30-45 degrees right)libs/psyche/gaze-control/src/targets.ts:129—pitch = 0.4 + Math.random() * 0.3; // 0.4 to 0.7libs/psyche/gaze-control/src/targets.ts:134—pitch = -0.3 - Math.random() * 0.2; // -0.3 to -0.5libs/psyche/gaze-control/src/targets.ts:154—preferDirection === 'auto' ? (Math.random() < 0.5 ? 'left' : 'right') : preferDirection;libs/psyche/gaze-control/src/targets.ts:156—const yaw = direction === 'left' ? -0.3 - Math.random() * 0.2 : 0.3 + Math.random() * 0.2;libs/psyche/gaze-control/src/targets.ts:157—const pitch = 0.2 + Math.random() * 0.2; // Looking uplibs/psyche/gaze-control/src/targets.ts:163—durationHint: 0.6 + Math.random() * 0.6, // Longer for thinkinglibs/psyche/gaze-control/src/targets.ts:388—let random = Math.random() * total;libs/psyche/gaze-control/src/targets.ts:413—return Math.random() < 0.5 ? 'left' : 'right';libs/psyche/gaze-control/src/targets.ts:416—let random = Math.random() * total;libs/psyche/gesture-system/src/variation.ts:236—if (Math.random() < 0.5) {libs/psyche/head-movement/src/environmental.ts:92—if (Math.random() > this.getResponseProbability()) {libs/psyche/head-movement/src/idle.ts:85—swayPhase: Math.random() * Math.PI * 2,libs/psyche/head-movement/src/tilts.ts:105—this.preferredDirection = Math.random() < 0.5 ? -1 : 1;libs/psyche/head-movement/src/tilts.ts:361—if (Math.random() < this.directionSwitchProbability) {libs/psyche/human-evaluation/src/session-manager.ts:555—const j = Math.floor(Math.random() * (i + 1));libs/psyche/latency-analysis/src/histogram.ts:86—const idx = Math.floor(Math.random() * this.count);libs/psyche/latency-analysis/src/histogram.ts:244—const j = Math.floor(Math.random() * (i + 1));libs/psyche/micro-expressions/src/blink-patterns.ts:382—const multiplier = minMultiplier + Math.random() * (maxMultiplier - minMultiplier);libs/psyche/micro-expressions/src/blink-patterns.ts:443—Math.random() < this.config.incompleteBlinkProbability;libs/psyche/micro-expressions/src/blink-patterns.ts:447—this.config.allowDoubleBlinks && Math.random() < this.config.doubleBlinkProbability;libs/psyche/micro-expressions/src/micro-expressions.ts:193—const duration = minDuration + Math.random() * (maxDuration - minDuration);libs/psyche/micro-expressions/src/micro-expressions.ts:476—const leakIntensity = 0.5 + Math.random() * 0.3;libs/psyche/micro-expressions/src/micro-expressions.ts:553—return min + Math.random() * (max - min);libs/psyche/micro-expressions/src/subtle-movements.ts:248—const duration = minDur + Math.random() * (maxDur - minDur);libs/psyche/micro-expressions/src/subtle-movements.ts:251—const intensity = options.intensityOverride ?? minInt + Math.random() * (maxInt - minInt);libs/psyche/mobile-sdk/src/edge-offline.ts:215—latencyMs: 50 + Math.random() * 100,libs/psyche/noise-handling/src/echo-canceller.ts:656—const noise = (Math.random() * 2 - 1) * this.comfortNoiseLevel;libs/psyche/nps/src/calculator.ts:214—const randomIndex = Math.floor(Math.random() * scores.length);libs/psyche/participant-manager/src/gpu-parallel-processor.ts:930—const processingTime = job.estimatedComputeMs * (0.8 + Math.random() * 0.4);libs/psyche/participant-manager/src/social-network-mapper.ts:687—const j = Math.floor(Math.random() * (i + 1));libs/psyche/sophia-integration/src/embedding-adapter.ts:415—embedding.push(Math.random() * 2 - 1);libs/psyche/sophia-search-integration/src/search-adapter.ts:691—processingTimeMs: Math.random() * 100 + 50,libs/psyche/tavus-bridge/src/bridge.ts:433—const idx = Math.floor(Math.random() * this.videoBuffer.length);libs/psyche/tavus-bridge/src/bridge.ts:452—const idx = Math.floor(Math.random() * this.audioBuffer.length);libs/psyche/tavus-bridge/src/zoom-breakout-rooms.ts:408—const j = Math.floor(Math.random() * (i + 1));libs/psyche/tavus-client/src/mock.ts:255—return min + Math.random() * (max - min);libs/psyche/tavus-client/src/mock.ts:762—chunkCount: request.type === 'text' ? 1 : Math.ceil(Math.random() * 10),libs/psyche/tavus-client/src/multi-region.ts:583—let random = Math.random() * totalWeight;libs/psyche/tavus-conversation/src/recording.ts:541—return Array.from({ length: 64 }, () => Math.floor(Math.random() * 16).toString(16)).join('');libs/psyche/tavus-conversation/src/transcripts.ts:647—const duration = words.length * 0.3 + Math.random() * 0.5; // ~300ms per word + variationlibs/psyche/tavus-conversation/src/transcripts.ts:675—emotionConfidence: emotion ? 0.7 + Math.random() * 0.25 : null,libs/psyche/tavus-conversation/src/transcripts.ts:681—currentTime += duration + 0.2 + Math.random() * 0.5; // Gap between utteranceslibs/psyche/tavus-conversation/src/transcripts.ts:759—const sentimentScores = segments.map(() => Math.random() * 2 - 1);libs/psyche/tavus-expression/src/expression-ab-testing.ts:1142—const random = Math.random() * 100;libs/psyche/tavus-expression/src/expression-ab-testing.ts:1205—const random = Math.random() * totalScore;libs/psyche/tavus-hybrid/src/ab-testing.ts:830—const random = Math.random() * 100;libs/psyche/tavus-hybrid/src/ab-testing.ts:893—const random = Math.random() * totalScore;libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts:254—const u = Math.random();libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts:271—const u = Math.random();libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts:491—const explore = Math.random() < model.epsilon;libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts:519—const explore = Math.random() < model.epsilon;libs/psyche/tavus-hybrid/src/ml-mode-optimization.ts:759—const rand = Math.random();libs/psyche/tavus-hybrid/src/performance-tracking.ts:447—if (Math.random() > this.config.sampleRate) return;libs/psyche/tavus-knowledge/src/retrieval-ab-testing.ts:1029—let random = Math.random() * totalWeight;libs/psyche/tavus-llm/src/llm-ab-testing.ts:781—const rand = Math.random();libs/psyche/tavus-llm/src/llm-ab-testing.ts:817—if (Math.random() < epsilon) {libs/psyche/tavus-llm/src/llm-ab-testing.ts:819—const index = Math.floor(Math.random() * variants.length);libs/psyche/tavus-llm/src/llm-ab-testing.ts:886—const sample = mean + Math.sqrt(variance) * inverseNormalCDF(Math.random() * 0.98 + 0.01);libs/psyche/tavus-llm/src/llm-fallback.ts:692—let random = Math.random() * totalWeight;libs/psyche/tavus-llm/src/llm-latency-monitor.ts:252—if (Math.random() > this.config.sampleRate) {libs/psyche/tavus-objectives/src/guardrail-ab-testing.ts:977—const identifier = userId ?? conversationId ??anon-${Date.now()}-${Math.random()};libs/psyche/tavus-objectives/src/guardrail-ab-testing.ts:1067—const rand = Math.random();libs/psyche/tavus-objectives/src/guardrail-ab-testing.ts:1090—let rand = Math.random() * totalWeight;libs/psyche/tavus-objectives/src/objective-ab-testing.ts:889—const identifier = userId ?? conversationId ??anon-${Date.now()}-${Math.random()};libs/psyche/tavus-objectives/src/objective-ab-testing.ts:984—const rand = Math.random();libs/psyche/tavus-objectives/src/objective-ab-testing.ts:1008—let rand = Math.random() * totalWeight;libs/psyche/tavus-perception/src/learning-perception-optimizer.ts:1191—if (Math.random() < this.explorationRate) {libs/psyche/tavus-phoenix/src/frame-interpolation.ts:1313—const idx = Math.floor(Math.random() * (result.data.length / 4)) * 4;libs/psyche/tavus-pipecat/src/monitoring.ts:825—return Math.random() < this.config.traceSampleRate;libs/psyche/tavus-pipecat/src/multi-region-deployment.ts:507—let random = Math.random() * totalWeight;libs/psyche/tavus-pipecat/src/multi-region-deployment.ts:968—let random = Math.random() * totalWeight;libs/psyche/tavus-pipecat/src/multimodal-fusion-processor.ts:1917—if (Math.random() < this.fusionConfig.dropoutRate) {libs/psyche/tavus-replica-manager/src/ab-testing.ts:593—const index = Math.floor(Math.random() * variants.length);libs/psyche/tavus-replica-manager/src/ab-testing.ts:605—let random = Math.random() * totalWeight;libs/psyche/tavus-replica-manager/src/ab-testing.ts:624—if (Math.random() < epsilon) {libs/psyche/tavus-replica-manager/src/ab-testing.ts:626—const index = Math.floor(Math.random() * variants.length);libs/psyche/tavus-replica-manager/src/ab-testing.ts:718—return sampleGamma(shape + 1) * Math.pow(Math.random(), 1 / shape);libs/psyche/tavus-replica-manager/src/ab-testing.ts:733—const u = Math.random();libs/psyche/tavus-tts/src/tts-latency-monitor.ts:487—if (this.config.sampleRate < 1 && Math.random() > this.config.sampleRate) {libs/psyche/tavus-turntaking/src/ab-testing.ts:1073—const rand = Math.random();libs/psyche/tavus-turntaking/src/ab-testing.ts:1139—const rand = Math.random();libs/psyche/tavus-turntaking/src/hesitation-handling.ts:1031—return config.helpPhrases[Math.floor(Math.random() * config.helpPhrases.length)] ?? null;libs/psyche/tavus-turntaking/src/learning-optimizer.ts:831—if (Math.random() < this.explorationRate) {libs/saraswati/drones/src/delivery/delivery.ts:810—const simulatedDetections = Math.random() < 0.3 ? 1 : 0; // 30% chance of finding defectlibs/saraswati/drones/src/delivery/delivery.ts:815—model.defectCategories[Math.floor(Math.random() * model.defectCategories.length)];libs/seshat/academy/src/certification.ts:699—const seq = Math.floor(Math.random() * 9000) + 1000;libs/seshat/harmony/src/feng-shui.ts:1641—effectiveness: Math.round(60 + Math.random() * 20),libs/shared/ai-advanced/src/adapters/adapter-manager.ts:566—embeddings: inputs.map(() => new Array(1536).fill(0).map(() => Math.random())),libs/shared/ai-advanced/src/edge/edge-manager.ts:554—data: new Float32Array(outputSize).fill(0).map(() => Math.random()),libs/shared/ai/src/advanced/index.ts:702—const random = Math.random();libs/shared/ai/src/router/ml-router.ts:316—const j = Math.floor(Math.random() * (i + 1));libs/shared/ai/src/router/ml-router.ts:550—const idx = Math.floor(Math.random() * X.length);libs/shared/ai/src/router/ml-router.ts:1024—const isABTestSample = this.mlConfig.enableABTesting && Math.random() < 0.5;libs/shared/ai/src/router/ml-router.ts:1026—useML = Math.random() < this.mlConfig.abTestRatio;libs/shared/config/src/features.ts:592—return Math.random() * 100 < percentage;libs/shared/gpu-dispatcher/src/fallback.ts:629—let random = Math.random() * totalWeight;libs/shared/gpu-dispatcher/src/fallback.ts:654—const index = Math.floor(Math.random() * endpoints.length);libs/shared/logging/src/sampling/index.ts:91—if (Math.random() < this.config.rate) {libs/shared/logging/src/sampling/index.ts:161—if (Math.random() < this.currentRate) {libs/shared/logging/src/sampling/index.ts:238—if (Math.random() < rate) {libs/shared/logging/src/sampling/index.ts:311—if (Math.random() < this.config.rate) {libs/shared/service-discovery/src/service-discovery.ts:270—let random = Math.random() * totalWeight;libs/shared/tracing/src/tracer.ts:582—return Math.random() < this.config.sampleRate;libs/sophia/citation-analysis/src/network/citation-network-analyzer.ts:506—const j = Math.floor(Math.random() * (i + 1));libs/sophia/indexing/src/graphs/graph-visualization.ts:379—: { x: Math.random() * 100, y: Math.random() * 100 }),libs/sophia/knowledge-graph/src/algorithms/community.ts:71—const j = Math.floor(Math.random() * (i + 1));libs/tara/analytics/src/tracking/tracker.ts:161—if (Math.random() > samplingRate) {libs/tara/monitoring/src/error-tracking/error-tracker.ts:463—return Math.random() < this.config.sampleRate;libs/tara/monitoring/src/performance/performance-monitor.ts:456—return Math.random() < this.config.sampleRate;libs/tara/monitoring/src/providers/server.ts:350—return Math.random() < this.config.sampleRate;libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:423—x: Math.random() * 100,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:424—y: Math.random() * 100,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:425—delay: Math.random() * 500,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:426—scale: 0.5 + Math.random() * 0.5,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:438—x: Math.random() * 100,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:439—delay: Math.random() * 1000,libs/tara/ui/src/components/SessionComplete/SessionComplete.tsx:441—rotation: Math.random() * 360,libs/kalika/algebra/src/finite-groups.ts:2745—options.randomSeed === undefined ? Math.random : seededRandom(options.randomSeed);libs/veritas/agents-devops/src/devops-agent.ts:623—const simulatedSuccess = Math.random() > 0.1; // 90% success ratelibs/veritas/agents-devops/src/devops-agent.ts:624—const simulatedLatency = Math.random() * 200 + 50; // 50-250mslibs/veritas/agents-orchestrator/src/conflict-resolver.ts:449—const randomIndex = Math.floor(Math.random() * conflict.participants.length);libs/veritas/agents-qa/src/qa-agent.ts:756—const simulatedResult = Math.random();libs/veritas/agents-qa/src/qa-agent.ts:760—const duration = Math.random() * 1000 + 100; // 100-1100mslibs/veritas/agents-qa/src/qa-agent.ts:1235—responseTimes.push(Math.random() * 200 + 50); // 50-250mslibs/veritas/ai-next-gen/src/osint.ts:1122—postCount: Math.floor(Math.random() * 10000) + 1000,libs/veritas/ai-next-gen/src/osint.ts:1123—sentiment: Math.random() * 2 - 1,libs/veritas/ai-next-gen/src/osint.ts:1126—Math.random() * (params.dateRange.end.getTime() - params.dateRange.start.getTime())libs/veritas/ai-next-gen/src/osint.ts:1128—spreadVelocity: Math.random() * 100,libs/veritas/ai-next-gen/src/osint.ts:1132—influence: Math.random(),libs/veritas/ai-next-gen/src/osint.ts:1133—reach: Math.floor(Math.random() * 1000000),libs/veritas/ai-next-gen/src/osint.ts:1389—overall: Math.random() * 2 - 1,libs/veritas/analytics/src/events/tracker.ts:579—return Math.random() < this.config.samplingRate;libs/veritas/automated-content/src/generators/fuel-generator.ts:367—const basePrice = basePrices[product] + Math.random() * 2;libs/veritas/automated-content/src/generators/loadshed-generator.ts:164—const hasActiveShedding = Math.random() < 0.3; // 30% chance of active sheddinglibs/veritas/automated-content/src/generators/loadshed-generator.ts:165—const hasScheduledShedding = Math.random() < 0.5; // 50% chance of scheduled sheddinglibs/veritas/automated-content/src/generators/loadshed-generator.ts:469—const selectedZones = ECG_ZONES.filter(() => Math.random() < 0.3);libs/veritas/automated-content/src/generators/loadshed-generator.ts:473—const isMorning = Math.random() < 0.5;libs/veritas/automated-content/src/generators/loadshed-generator.ts:475—const duration = 4 + Math.floor(Math.random() * 4); // 4-8 hourslibs/veritas/automated-content/src/generators/loadshed-generator.ts:489—confirmed: Math.random() < 0.8,libs/veritas/automated-content/src/generators/loadshed-generator.ts:501—const count = 1 + Math.floor(Math.random() * 3);libs/veritas/automated-content/src/generators/loadshed-generator.ts:505—const hoursAgo = Math.random() * 3;libs/veritas/automated-content/src/generators/loadshed-generator.ts:507—const duration = 4 + Math.floor(Math.random() * 4);libs/veritas/automated-content/src/generators/loadshed-generator.ts:526—Math.random() < 0.7 ? 'stable' : Math.random() < 0.5 ? 'unstable' : 'critical';libs/veritas/automated-content/src/generators/loadshed-generator.ts:528—const generation = baseGeneration + Math.floor(Math.random() * 500) - 250;libs/veritas/automated-content/src/generators/loadshed-generator.ts:529—const demand = generation + Math.floor(Math.random() * 300);libs/veritas/automated-content/src/generators/market-generator.ts:397—high: value * (1 + Math.random() * 0.01),libs/veritas/automated-content/src/generators/market-generator.ts:398—low: value * (1 - Math.random() * 0.01),libs/veritas/automated-content/src/generators/market-generator.ts:407—return 3200 + Math.random() * 200;libs/veritas/automated-content/src/generators/market-generator.ts:409—return 2100 + Math.random() * 100;libs/veritas/automated-content/src/generators/market-generator.ts:411—return 1800 + Math.random() * 100;libs/veritas/automated-content/src/generators/market-generator.ts:419—const basePrice = 1 + Math.random() * 20;libs/veritas/automated-content/src/generators/market-generator.ts:429—volume: Math.floor(Math.random() * 500000) + 10000,libs/veritas/automated-content/src/generators/market-generator.ts:430—marketCap: price * (1000000 + Math.random() * 10000000),libs/veritas/automated-content/src/generators/market-generator.ts:439—buyRate: 14.8 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/market-generator.ts:440—sellRate: 15.0 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/market-generator.ts:447—buyRate: 16.2 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/market-generator.ts:448—sellRate: 16.5 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/market-generator.ts:455—buyRate: 18.8 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/market-generator.ts:456—sellRate: 19.2 + Math.random() * 0.5,libs/veritas/automated-content/src/generators/traffic-generator.ts:331—const severity = Math.min(5, Math.max(1, baseSeverity + Math.floor(Math.random() * 2) - 1));libs/veritas/automated-content/src/generators/traffic-generator.ts:334—const normalTravelTime = 10 + Math.floor(Math.random() * 20);libs/veritas/automated-content/src/generators/traffic-generator.ts:357—if (Math.random() < 0.3) {libs/veritas/automated-content/src/generators/traffic-generator.ts:367—severity: 3 + Math.floor(Math.random() * 2),libs/veritas/automated-content/src/generators/traffic-generator.ts:368—startTime: new Date(now.getTime() - Math.random() * 2 * 60 * 60 * 1000),libs/veritas/automated-content/src/generators/traffic-generator.ts:369—expectedClearTime: new Date(now.getTime() + Math.random() * 2 * 60 * 60 * 1000),libs/veritas/community/src/gamification.ts:1017—const j = Math.floor(Math.random() * (i + 1));libs/veritas/community/src/securedrop.ts:161—const number = Math.floor(Math.random() * 1000);libs/veritas/emergency/src/election.ts:795—if (Math.random() < 0.1) {libs/veritas/headline-service/src/testing/ab-testing.ts:336—const random = Math.random();libs/veritas/headline-service/src/testing/ab-testing.ts:354—if (Math.random() < epsilon) {libs/veritas/newsletter/src/newsletters.ts:1077—opens: Math.floor(Math.random() * 50) + 20,libs/veritas/newsletter/src/newsletters.ts:1079—clicks: Math.floor(Math.random() * 20) + 5,libs/veritas/newsletter/src/newsletters.ts:1081—conversions: Math.floor(Math.random() * 10),libs/veritas/realtime-data/src/financial.ts:978—const basePrice = 2 + Math.random() * 10;libs/veritas/realtime-data/src/financial.ts:989—volume: Math.floor(Math.random() * 100000),libs/veritas/realtime-data/src/financial.ts:1002—value: 2500 + Math.random() * 100,libs/veritas/realtime-data/src/financial.ts:1004—change: Math.random() * 20 - 10,libs/veritas/realtime-data/src/financial.ts:1005—changePercent: Math.random() * 2 - 1,libs/veritas/realtime-data/src/utilities.ts:809—const flightNumber =${airline.code}${100 + Math.floor(Math.random() * 900)};libs/veritas/realtime-data/src/utilities.ts:813—scheduled.setMinutes(Math.floor(Math.random() * 60));libs/veritas/realtime-data/src/utilities.ts:839—gate:G${Math.floor(Math.random() * 20) + 1},libs/veritas/realtime-data/src/utilities.ts:840—delay: status === 'delayed' ? Math.floor(Math.random() * 60) + 15 : undefined,libs/veritas/realtime-data/src/weather.ts:906—temperature: baseTemp + Math.random() * 4 - 2,libs/veritas/realtime-data/src/weather.ts:908—humidity: isNorthern ? 40 + Math.random() * 20 : 60 + Math.random() * 20,libs/veritas/realtime-data/src/weather.ts:909—pressure: 1012 + Math.random() * 5,libs/veritas/realtime-data/src/weather.ts:910—windSpeed: 3 + Math.random() * 5,libs/veritas/realtime-data/src/weather.ts:911—windDirection: 180 + Math.random() * 60,libs/veritas/realtime-data/src/weather.ts:913—uvIndex: 8 + Math.random() * 3,libs/veritas/realtime-data/src/weather.ts:914—cloudCover: 30 + Math.random() * 40,libs/veritas/realtime-data/src/weather.ts:918—precipitation: Math.random() > 0.7 ? Math.random() * 5 : 0,libs/veritas/realtime-data/src/weather.ts:936—temperatureMin: 24 + Math.random() * 2,libs/veritas/realtime-data/src/weather.ts:937—temperatureMax: 31 + Math.random() * 3,libs/veritas/realtime-data/src/weather.ts:938—humidity: 65 + Math.random() * 15,libs/veritas/realtime-data/src/weather.ts:939—windSpeed: 4 + Math.random() * 4,libs/veritas/realtime-data/src/weather.ts:941—precipitation: Math.random() > 0.6 ? Math.random() * 10 : 0,libs/veritas/realtime-data/src/weather.ts:942—precipitationProbability: Math.random() * 50,libs/veritas/realtime-data/src/weather.ts:943—condition: Math.random() > 0.7 ? 'moderate_rain' : 'partly_cloudy',libs/veritas/realtime-data/src/weather.ts:944—description: Math.random() > 0.7 ? 'Light rain' : 'Partly cloudy',libs/veritas/realtime-data/src/weather.ts:945—icon: Math.random() > 0.7 ? '10d' : '02d',libs/veritas/realtime-data/src/weather.ts:970—temperature: baseTemp + Math.random() * 3,libs/veritas/realtime-data/src/weather.ts:972—humidity: 65 + Math.random() * 15,libs/veritas/realtime-data/src/weather.ts:973—windSpeed: 4 + Math.random() * 3,libs/veritas/realtime-data/src/weather.ts:975—precipitation: Math.random() > 0.8 ? Math.random() * 3 : 0,libs/veritas/realtime-data/src/weather.ts:976—precipitationProbability: Math.random() * 40,libs/veritas/realtime-data/src/weather.ts:988—if (Math.random() > 0.2) return [];libs/veritas/regional/src/anchors.ts:164—age: options.age || 28 + Math.floor(Math.random() * 15),libs/veritas/seo/src/web-vitals.ts:219—if (Math.random() > this.config.sampleRate) {libs/veritas/seo/src/web-vitals.ts:263—if (Math.random() > sampleRate) return;libs/veritas/signup/src/enterprise-sales.ts:283—available: Math.random() > 0.3, // 70% availabilitylibs/veritas/video-production/src/advanced/live-event.ts:758—viewerCount: Math.floor(Math.random() * 10000) + 1000,libs/veritas/video-production/src/advanced/live-event.ts:759—peakViewers: Math.floor(Math.random() * 15000) + 2000,libs/veritas/video-production/src/advanced/live-event.ts:760—engagementRate: Math.random() * 0.3 + 0.1,libs/veritas/video-production/src/advanced/live-event.ts:761—avgWatchTimeSeconds: Math.floor(Math.random() * 300) + 60,libs/veritas/video-production/src/advanced/live-event.ts:762—chatMessagesPerMinute: Math.floor(Math.random() * 100) + 10,libs/veritas/video-production/src/advanced/live-event.ts:763—socialMentions: Math.floor(Math.random() * 500) + 50,libs/veritas/video-production/src/advanced/live-event.ts:765—positive: Math.random() * 0.5 + 0.2,libs/veritas/video-production/src/advanced/live-event.ts:766—neutral: Math.random() * 0.3 + 0.2,libs/veritas/video-production/src/advanced/live-event.ts:767—negative: Math.random() * 0.2 + 0.1,libs/veritas/video-production/src/advanced/live-event.ts:771—count: Math.floor(Math.random() * 100) + 10,libs/veritas/video-production/src/avatars/twi-anchors.ts:512—return branding.intro[Math.floor(Math.random() * branding.intro.length)];libs/veritas/video-production/src/avatars/twi-anchors.ts:530—return branding.outro[Math.floor(Math.random() * branding.outro.length)];libs/yemaya/agents/src/constraints/index.ts:1710—variables[varName] = range.min + Math.random() * (range.max - range.min);libs/yemaya/agents/src/constraints/index.ts:1956—if (Math.random() < this.config.crossoverRate) {libs/yemaya/agents/src/constraints/index.ts:1961—if (Math.random() < this.config.mutationRate) {libs/yemaya/agents/src/constraints/index.ts:1964—if (Math.random() < this.config.mutationRate) {libs/yemaya/agents/src/constraints/index.ts:1996—const alpha = Math.random();libs/yemaya/agents/src/constraints/index.ts:2034—Math.floor(Math.random() * Object.keys(mutated.variables).length)libs/yemaya/agents/src/hitl/index.ts:1887—const randomIndex = Math.floor(Math.random() * availableReviewers.length);libs/yemaya/agents/src/npc-ai/advanced-npc-ai.ts:1577—if (profile.tacticalAwareness > 0.7 && Math.random() < profile.tacticalAwareness * 0.3) {libs/yemaya/agents/src/npc-ai/advanced-npc-ai.ts:2198—if (Math.random() > spreadChance) return false;libs/yemaya/agents/src/optimization/schedule-optimizer.ts:744—if (Math.random() < crossoverRate) {libs/yemaya/agents/src/optimization/schedule-optimizer.ts:754—if (Math.random() < mutationRate) {libs/yemaya/agents/src/optimization/schedule-optimizer.ts:873—if (deltaEnergy < 0 || Math.random() < Math.exp(-deltaEnergy / temperature)) {libs/yemaya/agents/src/optimization/schedule-optimizer.ts:1956—if (Math.random() < 0.3) {libs/yemaya/agents/src/optimization/schedule-optimizer.ts:2055—const idx = Math.floor(Math.random() * evaluated.length);libs/yemaya/agents/src/optimization/schedule-optimizer.ts:2078—const crossoverPoint = Math.floor(Math.random() * parent1.length);libs/yemaya/agents/src/optimization/schedule-optimizer.ts:2107—const idx = Math.floor(Math.random() * schedule.length);libs/yemaya/agents/src/optimization/schedule-optimizer.ts:2112—const mutationType = Math.random();libs/yemaya/agents/src/orchestration/cascading-failure-prevention.ts:853—return Math.random() > this.config.loadSheddingConfig.shedRate;libs/yemaya/agents/src/orchestration/critical-path-analyzer.ts:1305—const u = Math.random();libs/yemaya/agents/src/orchestration/decision-impact.ts:1635—value = lower + Math.random() * (upper - lower);libs/yemaya/agents/src/orchestration/decision-impact.ts:1638—value = lower + Math.random() * (upper - lower);libs/yemaya/agents/src/orchestration/resource-contention-resolver.ts:907—let winner = Math.floor(Math.random() * totalTickets);libs/yemaya/agents/src/orchestration/retry-strategy-selector.ts:569—return Math.random() * baseDelay;libs/yemaya/agents/src/orchestration/role-assignment.ts:1109—if (newLevel && Math.random() < agent.learningRate) {libs/yemaya/agents/src/pipelines/game-pipeline.ts:10062—uid += chars.charAt(Math.floor(Math.random() * chars.length));libs/yemaya/agents/src/planning/goal-priority-ranker.ts:1419—const j = Math.floor(Math.random() * (i + 1));libs/yemaya/agents/src/planning/progress-estimator.ts:512—return Math.random;libs/yemaya/agents/src/self-improvement/self-improvement.ts:1888—const rand = Math.random() * 100;libs/yemaya/agents/src/testing/ai-player-algorithms.ts:1494—const angle = Math.random() * Math.PI * 2;libs/yemaya/agents/src/testing/ai-player-algorithms.ts:1495—const distance = 50 + Math.random() * 100;libs/yemaya/agents/src/testing/index.d.ts:893—/** Real detected issues (replaces synthetic Math.random() issues) */libs/yemaya/agents/src/testing/index.ts:1888—if (Math.random() < 0.1) {libs/yemaya/agents/src/testing/index.ts:1892—x: Math.floor(Math.random() * 800),libs/yemaya/agents/src/testing/index.ts:1893—y: Math.floor(Math.random() * 600),libs/yemaya/agents/src/testing/index.ts:1901—duration: 200 + Math.floor(Math.random() * 300),libs/yemaya/agents/src/testing/index.ts:1930—if (Math.random() < 0.2) {libs/yemaya/agents/src/testing/index.ts:1986—if (Math.random() < 0.3) {libs/yemaya/agents/src/testing/index.ts:1990—x: Math.floor(Math.random() * 800),libs/yemaya/agents/src/testing/index.ts:1991—y: Math.floor(Math.random() * 600),libs/yemaya/agents/src/testing/index.ts:2053—action: Math.random() < 0.7 ? 'click' : 'move',libs/yemaya/agents/src/testing/index.ts:2055—x: Math.floor(Math.random() * 800),libs/yemaya/agents/src/testing/index.ts:2056—y: Math.floor(Math.random() * 600),libs/yemaya/agents/src/testing/index.ts:2073—{ type: 'mouse', action: 'move', x: Math.floor(Math.random() * 400) + 200, y: 300 }, // Look aroundlibs/yemaya/agents/src/testing/index.ts:2529—/** Real detected issues (replaces synthetic Math.random() issues) */libs/yemaya/agents/src/testing/index.ts:5817—if (Math.random() < 0.1) {libs/yemaya/agents/src/testing/index.ts:5821—x: Math.floor(Math.random() * 800),libs/yemaya/agents/src/testing/index.ts:5822—y: Math.floor(Math.random() * 600),libs/yemaya/agents/src/testing/index.ts:5830—duration: 200 + Math.floor(Math.random() * 300),libs/yemaya/asset-generation/src/asset-core/asset-core.ts:1614—seed: params.seed ?? Math.floor(Math.random() * 2147483647),libs/yemaya/asset-generation/src/illustration-engine/illustration-engine.ts:2562—seed: request.seed ?? Math.floor(Math.random() * 2147483647),libs/yemaya/asset-generation/src/thumbnail-generator/thumbnail-generator.ts:2056—seed: request.seed ?? Math.floor(Math.random() * 2147483647),libs/yemaya/assets/src/diff/diff-image.ts:1570—const x = Math.floor(Math.random() * Math.min(left.width, right.width));libs/yemaya/assets/src/diff/diff-image.ts:1571—const y = Math.floor(Math.random() * Math.min(left.height, right.height));libs/yemaya/auth/src/services/password.ts:314—const position = Math.floor(Math.random() * (password.length + 1));libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1274—if (synonyms && Math.random() < 0.3) {libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1284—const tokenCount = 1 + Math.floor(Math.random() * 2);libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1308—const idx1 = 1 + Math.floor(Math.random() * (parts.length - 1));libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1309—const idx2 = 1 + Math.floor(Math.random() * (parts.length - 1));libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1560—return Math.floor(Math.random() * 2147483647);libs/yemaya/comfyui-integration/src/comfyui-factory/comfyui-factory.ts:1566—return Math.floor(Math.random() * 2147483647);libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:186—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:219—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:253—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:291—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:329—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:375—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:429—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:491—return Math.floor(Math.random() * 2 ** 32);libs/yemaya/comfyui-integration/src/generation-pipeline/generation-pipeline.ts:502—return Math.floor(Math.random() * 2 ** 32);libs/yemaya/comfyui-integration/src/workflow-core/workflow-core.ts:1294—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/workflow-core/workflow-core.ts:1448—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/comfyui-integration/src/workflow-core/workflow-core.ts:1602—seed: Math.floor(Math.random() * 2 ** 32),libs/yemaya/community/src/certification/certification-manager.ts:425—const j = Math.floor(Math.random() * (i + 1));libs/yemaya/community/src/education/education-manager.ts:957—const j = Math.floor(Math.random() * (i + 1));libs/yemaya/core/src/advanced/security-performance-sota.ts:1050—if (Math.random() > 0.5) {libs/yemaya/core/src/advanced/security-performance-sota.ts:1303—asset.size = Math.floor(Math.random() * 10000) + 1000;libs/yemaya/core/src/advanced/security-performance-sota.ts:1522—totalHeap: Math.floor(Math.random() * 500000000) + 100000000,libs/yemaya/core/src/advanced/security-performance-sota.ts:1523—usedHeap: Math.floor(Math.random() * 300000000) + 50000000,libs/yemaya/core/src/advanced/security-performance-sota.ts:1524—externalMemory: Math.floor(Math.random() * 50000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1525—arrayBuffers: Math.floor(Math.random() * 10000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1529—allocated: Math.floor(Math.random() * 10000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1530—used: Math.floor(Math.random() * 8000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1531—peak: Math.floor(Math.random() * 12000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1532—objects: Math.floor(Math.random() * 100000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1536—allocated: Math.floor(Math.random() * 200000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1537—used: Math.floor(Math.random() * 150000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1538—peak: Math.floor(Math.random() * 250000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1539—objects: Math.floor(Math.random() * 500000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1650—duration: Math.floor(Math.random() * 50) + 5,libs/yemaya/core/src/advanced/security-performance-sota.ts:1651—freedBytes: Math.floor(Math.random() * 50000000),libs/yemaya/core/src/advanced/security-performance-sota.ts:1857—cpuPercent: Math.random() * 50,libs/yemaya/core/src/advanced/security-performance-sota.ts:1865—selfTime: Math.random() * 100,libs/yemaya/core/src/advanced/security-performance-sota.ts:1866—totalTime: Math.random() * 200,libs/yemaya/core/src/advanced/testing-sota.ts:867—if (config.nullable && Math.random() < 0.1) {libs/yemaya/core/src/advanced/testing-sota.ts:879—return Math.random() < 0.5;libs/yemaya/core/src/advanced/testing-sota.ts:885—return new Date(Date.now() - Math.floor(Math.random() * 365 * 24 * 60 * 60 * 1000));libs/yemaya/core/src/advanced/testing-sota.ts:979—return Math.floor(Math.random() * (max - min + 1)) + min;libs/yemaya/core/src/advanced/testing-sota.ts:983—return Math.random() * (max - min) + min;libs/yemaya/core/src/advanced/testing-sota.ts:991—result += chars.charAt(Math.floor(Math.random() * chars.length));libs/yemaya/core/src/advanced/testing-sota.ts:1019—const r = (Math.random() * 16) | 0;libs/yemaya/core/src/advanced/testing-sota.ts:1241—const targetSize = size ?? Math.floor(Math.random() * this.config.maxInputSize);libs/yemaya/core/src/advanced/testing-sota.ts:1324—() => input.replace(/./g, () => String.fromCharCode(Math.floor(Math.random() * 256))),libs/yemaya/core/src/advanced/testing-sota.ts:1326—() => input.repeat(Math.floor(Math.random() * 10) + 1),libs/yemaya/core/src/advanced/testing-sota.ts:1329—Array.from({ length: Math.floor(Math.random() * 100) }, () =>libs/yemaya/core/src/advanced/testing-sota.ts:1330—String.fromCharCode(Math.floor(Math.random() * 256))libs/yemaya/core/src/advanced/testing-sota.ts:1380—chars.push(String.fromCharCode(Math.floor(Math.random() * 256)));libs/yemaya/core/src/advanced/testing-sota.ts:1397—() => Math.random() * Number.MAX_VALUE,libs/yemaya/core/src/advanced/testing-sota.ts:1407—buffer[i] = Math.floor(Math.random() * 256);libs/yemaya/core/src/advanced/testing-sota.ts:1416—boolean: Math.random() < 0.5,libs/yemaya/core/src/advanced/testing-sota.ts:1447—return this.dictionary[Math.floor(Math.random() * this.dictionary.length)] ?? '';libs/yemaya/diagram-renderer/src/layout-engine/layout-engine.ts:598—const angle = Math.random() * Math.PI * 2;libs/yemaya/orchestration/src/execution/director.ts:806—const u = Math.random();libs/yemaya/orchestration/src/services/goal-decomposition.ts:1824—const u = Math.random();libs/yemaya/orchestration/src/services/goal-decomposition.ts:4015—if (Math.random() < risk.probability) {libs/yemaya/organizations/src/services/analytics-service.ts:1424—return Math.floor(Math.random() * 100);libs/yemaya/podcast-generator/src/audio-mixer/audio-mixer.ts:810—result[i] = amp * (Math.random() * 2 - 1);libs/yemaya/podcast-generator/src/audio-mixer/audio-mixer.ts:839—rows[j] = Math.random() * 2 - 1;libs/yemaya/podcast-generator/src/audio-mixer/audio-mixer.ts:851—rows[j] = Math.random() * 2 - 1;libs/yemaya/podcast-generator/src/audio-mixer/audio-mixer.ts:857—const white = Math.random() * 2 - 1;libs/yemaya/sdk/scripts/generate-postman.ts:479—const r = (Math.random() * 16) | 0;libs/yemaya/style-transfer/src/style-factory/style-factory.ts:1468—seed: request.seed ?? Math.floor(Math.random() * 2147483647),libs/yemaya/ui/src/components/Camera3DVisualization/Camera3DVisualization.tsx:1785—position: createVector3(Math.random() * 10 - 5, 2, Math.random() * 10 - 5),libs/yemaya/ui/src/components/XMLExport/types.ts:541—const r = (Math.random() * 16) | 0;libs/yemaya/video-generation/src/generation-engine/generation-engine.ts:945—const seed = request.seed !== null ? request.seed + i : Math.floor(Math.random() * 2147483647);libs/yemaya/video-generation/src/provider-router/provider-router.ts:640—seed: request.seed ?? Math.floor(Math.random() * 2147483647),libs/yemaya/video-generation/src/video-factory/video-factory.ts:1718—const seed = genRequest.seed ?? Math.floor(Math.random() * 2147483647);serwaa/services/admin-dashboard/src/app/dashboard/knowledge/upload/page.tsx:93—chunksCreated: Math.floor(Math.random() * 50) + 10,serwaa/services/admin-dashboard/src/app/dashboard/knowledge/upload/page.tsx:94—embeddingsGenerated: Math.floor(Math.random() * 50) + 10,serwaa/services/admin-dashboard/src/app/dashboard/knowledge/upload/page.tsx:95—processingTimeMs: Math.floor(Math.random() * 5000) + 2000,serwaa/services/admin-dashboard/src/components/forms/persona/avatar-form.tsx:152—Math.floor(Math.random() * (max - min + 1)) + min;serwaa/services/admin-dashboard/src/components/forms/persona/avatar-form.tsx:933—return prev + Math.random() * 2;serwaa/services/admin-dashboard/src/components/forms/persona/voice-form.tsx:289—height:${Math.random() * 100}%,testing/utils/test-utils.ts:208—result += chars.charAt(Math.floor(Math.random() * chars.length));testing/utils/test-utils.ts:218—const r = (Math.random() * 16) | 0;testing/utils/test-utils.ts:228—return Math.floor(Math.random() * (max - min + 1)) + min;testing/utils/test-utils.ts:242—return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));tests/integration/utils/test-helpers.ts:102—if (Math.random() < this.options.failureRate) {yaa/packages/ingestion/rss-collector/src/backoff.ts:2—return 0.8 + Math.random() * 0.4;yaa/packages/ingestion/sitemap-collector/src/backoff.ts:2—return 0.8 + Math.random() * 0.4;yaa/packages/ingestion/social-x/src/backoff.ts:2—return 0.8 + Math.random() * 0.4;yaa/packages/video/avatar-profiles/src/twi-anchors.ts:1179—return branding.intro[Math.floor(Math.random() * branding.intro.length)];yaa/packages/video/avatar-profiles/src/twi-anchors.ts:1199—return branding.outro[Math.floor(Math.random() * branding.outro.length)];yaa/packages/video/tiktok-sound-trends/src/analysis.ts:316—const peakDuration = 3 + Math.random() * 4; // 3-7 days estimate