[Low] normalizeAsset seed uses only first char of ID (6 variations) #54

Closed
opened 2026-05-24 14:05:03 -04:00 by zgaetano · 0 comments
Owner

File: data.jsx:79
Severity: Low

seed: a.id ? a.id.charCodeAt(0) % 6 : 1

Only 6 possible seeds because only the first character of the UUID is used. Assets with IDs starting with the same character get identical faux-frame/waveform randomization.

Fix: Use a proper hash (sum of all char codes) or at least multiple characters.

**File:** data.jsx:79 **Severity:** Low seed: a.id ? a.id.charCodeAt(0) % 6 : 1 Only 6 possible seeds because only the first character of the UUID is used. Assets with IDs starting with the same character get identical faux-frame/waveform randomization. **Fix:** Use a proper hash (sum of all char codes) or at least multiple characters.
zgaetano added the
bug
label 2026-05-24 14:05:03 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: WildDragonLLC/dragonflight#54
No description provided.