예제 #1
0
파일: random.go 프로젝트: haskelladdict/gsl
// Name returns the name of the random number generator or
// a rng type
func (s *RngState) Name() string {
	return C.GoString(C.gsl_rng_name(s.state))
}
예제 #2
0
파일: rng.go 프로젝트: postfix/gsl-1
func Name(r *GslRng) string {
	return C.GoString(C.gsl_rng_name((*C.gsl_rng)(unsafe.Pointer(r.Ptr()))))
}