Files
moxa/stdlib/go1_15_crypto_rand.go
Ludovic Fernandez 8bb5daf60e feat: update stdlib mapping for go1.16
- drop stdlib for go1.14
- generate stdlib for go1.16
-  update CI configuration.
2021-02-17 10:02:03 +01:00

21 lines
434 B
Go

// Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT.
// +build go1.15,!go1.16
package stdlib
import (
"crypto/rand"
"reflect"
)
func init() {
Symbols["crypto/rand"] = map[string]reflect.Value{
// function, constant and variable definitions
"Int": reflect.ValueOf(rand.Int),
"Prime": reflect.ValueOf(rand.Prime),
"Read": reflect.ValueOf(rand.Read),
"Reader": reflect.ValueOf(&rand.Reader).Elem(),
}
}