[PR #944] [MERGED] Use math/rand/v2 #936

Closed
opened 2026-03-02 06:10:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/944
Author: @pior
Created: 10/28/2024
Status: Merged
Merged: 10/29/2024
Merged by: @kamikazechaser

Base: masterHead: randv2


📝 Commits (1)

📊 Changes

2 files changed (+5 additions, -7 deletions)

View changed files

📝 processor.go (+3 -4)
📝 server.go (+2 -3)

📄 Description

Context

We want to start using math/rand/v2 since it fixed many flaws of math/rand, and is more performance.
https://go.dev/blog/randv2

Replaces https://github.com/hibiken/asynq/pull/916

Refs:

Changes

  • Update the Processor and Server components to use math/rand/v2

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/944 **Author:** [@pior](https://github.com/pior) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/29/2024 **Merged by:** [@kamikazechaser](https://github.com/kamikazechaser) **Base:** `master` ← **Head:** `randv2` --- ### 📝 Commits (1) - [`63f7cb7`](https://github.com/hibiken/asynq/commit/63f7cb7b1765b4161a45251d763281532282262a) Use math/rand/v2 ### 📊 Changes **2 files changed** (+5 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `processor.go` (+3 -4) 📝 `server.go` (+2 -3) </details> ### 📄 Description ## Context We want to start using `math/rand/v2` since it fixed many flaws of `math/rand`, and is more performance. https://go.dev/blog/randv2 Replaces https://github.com/hibiken/asynq/pull/916 Refs: - https://github.com/hibiken/asynq/pull/916#issuecomment-2437054813 - https://github.com/hibiken/asynq/pull/868#issuecomment-2423659098 ## Changes - Update the Processor and Server components to use `math/rand/v2` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 06:10:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#936
No description provided.