/randuuid

Random UUID with seed for Go

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

randuuid

Build Status Go Reference

Random UUID with seed for Go.
Source files are distributed under the BSD-style license found in the LICENSE file.

Install

go get github.com/danil/randuuid@v0.2.0

Usage

package main

import (
    "fmt"

    "github.com/danil/randuuid"
)

func main() {
    fmt.Println(randuuid.New(42))
    fmt.Println(randuuid.New(42))
}

Output:

538c7f96-b164-4f1b-97bb-9f4bb472e89f <nil>
538c7f96-b164-4f1b-97bb-9f4bb472e89f <nil>