Live video on the AT Protocol
1package spid
2
3import (
4 "crypto/rand"
5 "math/big"
6
7 "github.com/bluesky-social/indigo/atproto/syntax"
8)
9
10var TIDClock *syntax.TIDClock
11
12func init() {
13 id, err := rand.Int(rand.Reader, big.NewInt(1024))
14 if err != nil {
15 panic(err)
16 }
17 clock := syntax.NewTIDClock(uint(id.Uint64()))
18 TIDClock = &clock
19}