Something went wrong. Try again.
space & planet app!
Something went wrong. Try again.
12345678910111213141516package common
import ( "crypto/sha256" "encoding/binary" "time")
func Hash() []byte { b := make([]byte, 4) timestamp := time.Now().UnixNano() binary.BigEndian.PutUint32(b, uint32(timestamp)) hash := sha256.Sum256(b) return hash[:]}