Skip to content

Commit

Permalink
Update generator.go
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
  • Loading branch information
kohenkatz and cameracker committed May 12, 2024
1 parent 81691df commit e2280ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator.go
Expand Up @@ -292,7 +292,7 @@ func (g *Gen) NewV6() (UUID, error) {
binary.BigEndian.PutUint16(u[4:], uint16(timeNow>>12)) // set time_mid
binary.BigEndian.PutUint16(u[6:], uint16(timeNow&0xfff)) // set time_low (minus four version bits)

//Based on the RFC 9562 recommendation that this data be fully random and not a monotonic counter,
// Based on the RFC 9562 recommendation that this data be fully random and not a monotonic counter,
//we do NOT support batching version 6 UUIDs.
//set clock_seq (14 bits) and node (48 bits) pseudo-random bits (first 2 bits will be overridden)
if _, err = io.ReadFull(g.rand, u[8:]); err != nil {
Expand Down

0 comments on commit e2280ed

Please sign in to comment.