github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_crypto_rand.go (about)

     1  // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT.
     2  
     3  // +build go1.16,!go1.17
     4  
     5  package stdlib
     6  
     7  import (
     8  	"crypto/rand"
     9  	"reflect"
    10  )
    11  
    12  func init() {
    13  	Symbols["crypto/rand/rand"] = map[string]reflect.Value{
    14  		// function, constant and variable definitions
    15  		"Int":    reflect.ValueOf(rand.Int),
    16  		"Prime":  reflect.ValueOf(rand.Prime),
    17  		"Read":   reflect.ValueOf(rand.Read),
    18  		"Reader": reflect.ValueOf(&rand.Reader).Elem(),
    19  	}
    20  }