Files
mautrix-telegram/pkg/gotd/telegram/rand_int64.go
T
2025-06-27 20:03:37 -07:00

11 lines
278 B
Go

package telegram
import "go.mau.fi/mautrix-telegram/pkg/gotd/crypto"
// RandInt64 returns new random int64 from random source.
//
// Useful helper for places in API where random int is required.
func (c *Client) RandInt64() (int64, error) {
return crypto.RandInt64(c.rand)
}