Exemplo n.º 1
0
func Seed(semilla int) int {
	fmt.Println("Semilla ", semilla)
	valor := C.srandom(C.uint(semilla))
	tipo := reflect.TypeOf(valor)
	fmt.Println("Tipo: ", tipo)
	return int(C.random())
}
Exemplo n.º 2
0
Arquivo: cgo2.go Projeto: felixanya/go
// STOP OMIT
func Seed(i int) {
	C.srandom(C.uint(i))
}
Exemplo n.º 3
0
//Seed crea una semilla
func Seed(semilla int) {
	C.srandom(C.uint(semilla))
}