Skip to content

Conversation

dhotrey
Copy link
Contributor

@dhotrey dhotrey commented Oct 12, 2023

Issue

This stage tests for concurrent connections.
In the current implementation for number of connections made, there is a possibility that the value of randomInt variable can be 1 as the rand.Intn function returns a non-negative pseudo-random number in the half-open interval [0,n).

This may result in a false positive if the feature has not been implemented.
image

Fix

This PR modifies randomInt so that it's values can only be 2 or 3.

@nixypanda nixypanda merged commit 251f385 into codecrafters-io:main Oct 13, 2023
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.

2 participants