Files
moxa/stdlib/math_rand.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

39 lines
1.3 KiB
Go

package stdlib
// Generated by 'goexports math/rand'. Do not edit!
import (
"math/rand"
"reflect"
)
func init() {
Value["math/rand"] = map[string]reflect.Value{
"ExpFloat64": reflect.ValueOf(rand.ExpFloat64),
"Float32": reflect.ValueOf(rand.Float32),
"Float64": reflect.ValueOf(rand.Float64),
"Int": reflect.ValueOf(rand.Int),
"Int31": reflect.ValueOf(rand.Int31),
"Int31n": reflect.ValueOf(rand.Int31n),
"Int63": reflect.ValueOf(rand.Int63),
"Int63n": reflect.ValueOf(rand.Int63n),
"Intn": reflect.ValueOf(rand.Intn),
"New": reflect.ValueOf(rand.New),
"NewSource": reflect.ValueOf(rand.NewSource),
"NewZipf": reflect.ValueOf(rand.NewZipf),
"NormFloat64": reflect.ValueOf(rand.NormFloat64),
"Perm": reflect.ValueOf(rand.Perm),
"Read": reflect.ValueOf(rand.Read),
"Seed": reflect.ValueOf(rand.Seed),
"Shuffle": reflect.ValueOf(rand.Shuffle),
"Uint32": reflect.ValueOf(rand.Uint32),
"Uint64": reflect.ValueOf(rand.Uint64),
}
Type["math/rand"] = map[string]reflect.Type{
"Rand": reflect.TypeOf((*rand.Rand)(nil)).Elem(),
"Source": reflect.TypeOf((*rand.Source)(nil)).Elem(),
"Source64": reflect.TypeOf((*rand.Source64)(nil)).Elem(),
"Zipf": reflect.TypeOf((*rand.Zipf)(nil)).Elem(),
}
}