Documentation
¶
Overview ¶
Package sampling implements secure sampling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct { rand.ChaCha8 // contains filtered or unexported fields }
func (*Source) Complex128 ¶
func (s *Source) Complex128(min, max complex128) complex128
Complex128 returns a pseudo random complex128 in with the real part in the interval [real(min), real(max)), the imag part in the interval [imag(min), imag(max)).
func (*Source) NewSource ¶
NewSource returns a new sampling.Source seeded with bytes generated by the receiver.
Click to show internal directories.
Click to hide internal directories.