func Foo() { var i int _ = unsafe.Pointer(&i) var uuid C.uuid_t C.uuid_generate(&uuid[0]) }
func uuidgen() { var uuid C.cgo_uuid_t C.uuid_generate(&uuid[0]) }
// Generate creates a new universally unique identifier (UUID). // The UUID will be generated based on high-quality randomness generator. // (i.e.from /dev/urandom), if available. If it is not available, then // it will use an alternative algorithm which uses the current time, the // local ethernet MAC address (if available), and random data generated using // a pseudo-random generator. func (uu *Uuid) Generate() { C.uuid_generate(&uu.uuid[0]) }