feat: add daily challenge seed generation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 16:01:17 +09:00
parent 5ff82120ff
commit cd0d6c1c4c
2 changed files with 53 additions and 0 deletions

11
game/daily.go Normal file
View File

@@ -0,0 +1,11 @@
package game
import (
"crypto/sha256"
"encoding/binary"
)
func DailySeed(date string) int64 {
h := sha256.Sum256([]byte("catacombs:" + date))
return int64(binary.BigEndian.Uint64(h[:8]))
}