We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6fe5b0 commit c7317c7Copy full SHA for c7317c7
sdk/highlight-run/src/client/utils/secure-id.ts
@@ -11,9 +11,9 @@ export const GenerateSecureID = (key?: string): string => {
11
var secureID = ''
12
13
if (key) {
14
- // UseMurmurHash3 for fast, high-quality deterministic hashing (note: not cryptographically secure)
+ // UseMurmurHash3 for fast, high-quality deterministic hashing
15
+ // Note: not crypto secure, but we only need it to create a deterministic ID
16
const keyHash = MurmurHash3(key).result()
-
17
for (let i = 0; i < ID_LENGTH; i++) {
18
const charHash = (keyHash ^ (i * MIXER_PRIME)) >>> 0
19
const charIndex = charHash % CHARACTER_SET.length
0 commit comments