commit | 655bf50db9d265813a26b0fe2a5d1e80fb9e3c6b | [log] [tgz] |
---|---|---|
author | Andrey Pechkurov <37772591+puzpuzpuz@users.noreply.github.com> | Thu Jul 08 18:05:48 2021 +0300 |
committer | GitHub <noreply@github.com> | Thu Jul 08 10:05:48 2021 -0500 |
tree | 13bb3c888dcf5628774b0580c5d2be85d438486d | |
parent | 512b657a42880af87e9f0d863aa6dccf3540d4ba [diff] |
Add randomness pool mode for V4 UUID (#80) * Add randomness pool mode for V4 UUID Adds an optional randomness pool mode for Random (Version 4) UUID generation. The pool contains random bytes read from the random number generator on demand in batches. Enabling the pool may improve the UUID generation throughput significantly. Since the pool is stored on the Go heap, this feature may be a bad fit for security sensitive applications. That's why it's implemented as an opt-in feature. * fixup! document thread-safety aspects
The uuid package generates and inspects UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
This package is based on the github.com/pborman/uuid package (previously named code.google.com/p/go-uuid). It differs from these earlier packages in that a UUID is a 16 byte array rather than a byte slice. One loss due to this change is the ability to represent an invalid UUID (vs a NIL UUID).
go get github.com/google/uuid
Full go doc
style documentation for the package can be viewed online without installing this package by using the GoDoc site here: http://pkg.go.dev/github.com/google/uuid