MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / calculateLegacyFingerprint

Function calculateLegacyFingerprint

cli/src/utils/fingerprint.ts:135–138  ·  view source on GitHub ↗

* Generates a legacy fingerprint with a random suffix. * Used as a fallback when enhanced fingerprinting fails.

()

Source from the content-addressed store, hash-verified

133 * Used as a fallback when enhanced fingerprinting fails.
134 */
135function calculateLegacyFingerprint(): string {
136 const randomSuffix = randomBytes(6).toString('base64url').substring(0, 8)
137 return `codebuff-cli-${randomSuffix}`
138}
139
140/**
141 * Cached fingerprint promise. Populated on first call and reused for the

Callers 2

calculateFingerprintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected