GenerateTimestampID creates a session ID based on current time as fallback
()
| 21 | |
| 22 | // GenerateTimestampID creates a session ID based on current time as fallback |
| 23 | func GenerateTimestampID() string { |
| 24 | // Use nanosecond timestamp as fallback ID |
| 25 | timestamp := time.Now().UnixNano() |
| 26 | return hex.EncodeToString([]byte(fmt.Sprintf("%d", timestamp))) |
| 27 | } |