mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3887] [MERGED] perf: replace /dev/urandom | tr with openssl rand to fix CPU spike in gen_random_string #5550
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5550
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3887
Author: @Kookiejarz
Created: 3/5/2026
Status: ✅ Merged
Merged: 4/1/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (1)
e1a09b5perf: replace /dev/urandom | tr with openssl rand to fix CPU spike📊 Changes
3 files changed (+25 additions, -22 deletions)
View changed files
📝
install.sh(+11 -10)📝
update.sh(+11 -10)📝
x-ui.sh(+3 -2)📄 Description
closes #3886
Replace /dev/urandom | tr pipeline with openssl rand -base64 to reduce
tr's byte rejection rate from ~75% to ~2%, fixing CPU spikes on low-spec VPS.
See issue #3886 for detailed analysis.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.