// Package uuid creates pseudo uuid by using crypto/rand.
package uuid

import (
	"crypto/rand"
	"fmt"
)

var (
	DEBUG bool = false // Enable / disable debug messages from this package.
)

// New() creates pseudo uuid.
func New() (uuid string, err error) {
	b := make([]byte, 16)

	_, err = rand.Read(b)
	if err != nil {
		if DEBUG {
			fmt.Printf("rand.Read() err: %v", err)
		}
		return "", err
	}

	uuid = fmt.Sprintf("%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
	return uuid, nil
}

// Package uuid creates pseudo uuid by using crypto/rand.
package uuid

import (
	"crypto/rand"
	"fmt"
)

var (
	DEBUG bool = false // Enable / disable debug messages from this package.
)

// New creates pseudo uuid.
func New() (uuid string, err error) {
	b := make([]byte, 16)

	_, err = rand.Read(b)
	if err != nil {
		if DEBUG {
			fmt.Printf("rand.Read() err: %v", err)
		}
		return "", err
	}

	uuid = fmt.Sprintf("%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
	return uuid, nil
}

Fix func names in comments to remove golint warnings.
Fix func names in comments to remove golint warnings.
