dotnet/roslyn

DiagnosticLogger.LogHyperlink uses GetHashCode() to persist data

Open

#2,160 opened on Apr 21, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (20,414 stars) (4,257 forks)batch import
Area-AnalyzersBughelp wanted

Description

GetHashCode has no guarantee of stability across architectures, runtime implementations, process or AppDomain boundaries, or even build to build (in fact, we used to specifically break GetHashCode in daily CHK builds to prevent internal code from relying on them outside of an AppDomain. Other telemetry is using SHA256 hashes, and LogHyperlink should do the same.

Contributor guide