Skip to content

Conversation

@mbarnes-sb
Copy link

A mistake in the generation of the random 64bit RakNet GUID causes only about half of the bits to be set on the Windows platform. On other platforms 'gettimeofday' is used to generate the GUID, which can lead to collisions. Also using the 4 last bits of a short sleep duration as a source of randomness isn't sufficiently random so the granularity has been increased a bit.

A mistake in the generation of the random 64bit RakNet GUID causes only about half of the bits to be set on the Windows platform. On other platforms 'gettimeofday' is used to generate the GUID, which can lead to collisions. Also using the 4 last bits of a short sleep duration as a source of randomness isn't sufficiently random so the granularity has been increased a bit.
@mbarnes-sb
Copy link
Author

Original - facebookarchive#44

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants