Documentation ¶ Overview ¶ cryptoiter defines iterator source/collector that corresponds to std `crypto/*`. Index ¶ func RandBytes(size int) iter.Seq[[]byte] Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RandBytes ¶ func RandBytes(size int) iter.Seq[[]byte] RandBytes returns an iterator over pseudo-random n bytes long slice. The buffer which the iterator returns is reused and should not be retained by the callers. Callers should explicitly clone the slice by [mapper.Clone] if needed. Types ¶ This section is empty. Source Files ¶ View all Source files doc.gorand.go Click to show internal directories. Click to hide internal directories.