Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.crypto.rand
  • Platforms: .NET, .NET Standard 2.0, Island

Fields


Reader

 

class var Reader: Reader;

 

static Reader Reader

 

static var Reader: Reader

 

Reader Reader

Methods


Int

 

class method Int(rand: Reader; max: Reference<Int>): tuple of (n: Reference<Int>, err: error)

 

static (Reference<Int> n, error err) Int(Reader rand, Reference<Int> max)

 

static func Int(_ rand: Reader, _ max: Reference<Int>) -> (n:Reference<Int>, err:error)

 

func Int(rand Reader, max Reference<Int>) (n Reference<Int>, err error)

Parameters:

  • rand:
  • max:

Prime

 

class method Prime(rand: Reader; bits: int): tuple of (p: Reference<Int>, err: error)

 

static (Reference<Int> p, error err) Prime(Reader rand, int bits)

 

static func Prime(_ rand: Reader, _ bits: int) -> (p:Reference<Int>, err:error)

 

func Prime(rand Reader, bits int) (p Reference<Int>, err error)

Parameters:

  • rand:
  • bits:

Read

 

class method Read(b: Slice<Byte>): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) Read(Slice<Byte> b)

 

static func Read(_ b: Slice<Byte>) -> (n:Int64, err:error)

 

func Read(b Slice<Byte>) (n Int64, err error)

Parameters:

  • b: