PeculiarVentures / webcrypto-core

A input validation layer for WebCrypto polyfills.
MIT License
28 stars 13 forks source link

Generates invalid UUIDs #56

Closed benj-dobs closed 1 year ago

benj-dobs commented 1 year ago

randomUUID() appears to generate UUIDs that don't match the spec. It looks like the spec requires the format:

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Whereas this library generates:

xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx

It's correct except it's missing the final hyphen.

Is this a bug, or am I missing something?