8000 Use global rand source by dnr · Pull Request #15 · temporalio/ringpop-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use global rand source #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Use global rand source #15

merged 1 commit into from
Jul 18, 2024

Conversation

dnr
Copy link
Member
@dnr dnr commented Jul 18, 2024

What was changed

Use global rand instead of local sources.
Relax constraint in unit test to make it less flaky.

Why?

Rand sources are not thread-safe and need synchronization. Since this source was seeded by time and not reproducible anyway, there's no reason to use a local source.

Checklist

  1. How was this tested:
    existing tests

8000
@dnr dnr merged commit e2a435d into temporalio:master Jul 18, 2024
2 checks passed
@dnr dnr deleted the rand branch July 18, 2024 23:23
dnr added a commit to temporalio/temporal that referenced this pull request Jul 19, 2024
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
0