https://github.com/danil/randuuid
Random UUID with seed for Go
https://github.com/danil/randuuid
go golang uuid uuid4
Last synced: about 1 year ago
JSON representation
Random UUID with seed for Go
- Host: GitHub
- URL: https://github.com/danil/randuuid
- Owner: danil
- License: bsd-3-clause
- Created: 2020-11-26T17:28:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-02T10:10:41.000Z (over 5 years ago)
- Last Synced: 2025-04-07T20:56:31.291Z (about 1 year ago)
- Topics: go, golang, uuid, uuid4
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
randuuid
========
[](https://cloud.drone.io/danil/randuuid)
[](https://pkg.go.dev/github.com/danil/randuuid)
Random UUID with seed for Go.
Source files are distributed under the BSD-style license
found in the [LICENSE](./LICENSE) file.
Install
-------
go get github.com/danil/randuuid@v0.2.0
Usage
-----
```go
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
538c7f96-b164-4f1b-97bb-9f4bb472e89f