(input string)
| 546 | } |
| 547 | |
| 548 | func encodeToUint63(input string) *int64 { |
| 549 | hasher := fnv.New64a() // Create a new FNV-1a 64-bit hash |
| 550 | hasher.Write([]byte(input)) // Write the input string as bytes |
| 551 | hash := hasher.Sum64() // Get the 64-bit hash |
| 552 | result := int64(hash & ((1 << 63) - 1)) // Mask the MSB to ensure 63 bits and convert to int64 |
| 553 | return &result |
| 554 | } |
| 555 | |
| 556 | // Bluesky's API returns a letter ID for each user, |
| 557 | // While twitter uses a numeric ID, meaning we |
no outgoing calls
no test coverage detected