-
Notifications
You must be signed in to change notification settings - Fork 423
Releases: google/uuid
v1.6.0
0f11ee6 v1.5.0
4d47f8e Assets 2
v1.4.0
8de8764 Assets 2
v1.3.1
b3cae7c Assets 2
Add randomness pool mode for V4 UUID and NullUUID for SQL Scanners.
From Andrey Pechkurov:
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.
From Samuel Roth:
Added support for NullUUID
A NullUUID can be marked not valid (i.e., null) for use with JSON and the database/sql/driver.Scanner interfaces.
Assets 2
Add NewString()
Syntactic cleanup
b5d0d36 There are no code changes. A missing period was add to a godoc comment and the linter was told to not complain that the results of hash.Write() are ignored (the function cannot fail)
Assets 2
Further error optimizations
Optimize error reporting
edef28d Optimize length of time it takes to discover an input is bad by no longer using fmt.Errorf, which is quite slow. It now uses a custom error type that formats the string when the Error method is called rather than when generating the error.