mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-03 06:14:14 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
287 B
Swift
13 lines
287 B
Swift
import Foundation
|
|
|
|
public extension String {
|
|
var persistentHashValue: UInt64 {
|
|
var result = UInt64 (5381)
|
|
let buf = [UInt8](self.utf8)
|
|
for b in buf {
|
|
result = 127 * (result & 0x00ffffffffffffff) + UInt64(b)
|
|
}
|
|
return result
|
|
}
|
|
}
|