Exemplo n.º 1
0
func (x *GslQrng) Dispose() {
	C.gsl_qrng_free((*C.gsl_qrng)(unsafe.Pointer(x.Ptr())))
}
Exemplo n.º 2
0
// Free releases all the memory associated with the generator
// within the C part of gsl
func (s *QrngState) Free() {
	C.gsl_qrng_free(s.state)
	s.state = nil // to make sure we don't use after freeing
}