Skip to content

SSE package has its own UUID generator. #2071

Closed
@lrhn

Description

@lrhn

The SSE package has its own "UUID generator" which uses Dart's Random class.
That means that it generates a 128-bit UUID from a PRNG with ~32-bits of entropy.

If the package wants to use a 128-bit UUID, it should instead use package:uuid, so it gets the benefits from improvements or bug-fixes to that package.

The protocol does not, as I read it, require any specific format for the client ID, any Unicode string that does not contain U+0000, U+000A or U+000D is allowed.
The server also doesn't check the format in any way.

The SSE package could instead create any text representation of 32 bits, and it should work just as well.
(And be more efficient when it doesn't generate a more complicated format that nobody actually cares about.)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions