Documentation ¶
Overview ¶
Package gen contains functions for generating random base insolar types.
Index ¶
- func ID() (id insolar.ID)
- func IDWithPulse(pn insolar.PulseNumber) (id insolar.ID)
- func JetID() (jetID insolar.JetID)
- func PulseNumber() (pn insolar.PulseNumber)
- func Reference() insolar.Reference
- func Signature(size int) []byte
- func StringFromBytes(symbols []byte, maxcount int) string
- func UniqueIDs(a int) []insolar.ID
- func UniqueJetIDs(a int) []insolar.JetID
- func UniqueReferences(a int) []insolar.Reference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDWithPulse ¶
func IDWithPulse(pn insolar.PulseNumber) (id insolar.ID)
IDWithPulse generates random id with provided pulse.
func PulseNumber ¶
func PulseNumber() (pn insolar.PulseNumber)
PulseNumber generates random pulse number (excluding special cases).
func StringFromBytes ¶
StringFromBytes generates random id with length from 0 to maxcount randomly filled by provided symbols.
func UniqueJetIDs ¶
UniqueJetIDs generates several different jet ids
func UniqueReferences ¶
UniqueReferences generates multiple random unique References.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.