swift-perception
swift-perception copied to clipboard
Prevent overflow error in WithPerceptionTracking id
Using &+= operator to prevent int overflow errors, the same as _PerceptionRegistrar's generateId.
https://github.com/pointfreeco/swift-perception/blob/main/Sources/Perception/Internal/_PerceptionRegistrar.swift#L111