Skip to content

fix(sse): use crypto/rand for generateID to prevent test collisions#7

Open
Electricitysheep wants to merge 2 commits into
SurgeSeeker:mainfrom
Electricitysheep:base
Open

fix(sse): use crypto/rand for generateID to prevent test collisions#7
Electricitysheep wants to merge 2 commits into
SurgeSeeker:mainfrom
Electricitysheep:base

Conversation

@Electricitysheep

Copy link
Copy Markdown
Collaborator

The generateID function used rand.New(rand.NewSource(...)) which creates identical seeds when called rapidly. Fix by using crypto/rand.Read for true randomness. All tests now pass deterministically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant