00:01
2026-07-22
dev.to
developer-tools
301 duplicate IDs in the browser, 0 on the JVM: one real bug, end to end
A developer found that a match-3 game engine generated duplicate gem IDs in the browser but not on the JVM, due to the code relying on System.nanoTime() which browsers clamp for security. The fix replβ¦