Skip to content

fix(utility): NoRepeatRandom 抽取轮内加权抽取方法(S3776) - #948

Merged
AlianBlank merged 1 commit into
mainfrom
fix/issue-940
Nov 1, 2026
Merged

AlianBlank merged 1 commit into
mainfrom
fix/issue-940

Conversation

@AlianBlank

Copy link
Copy Markdown
Collaborator

修复 #940:NoRepeatRandom 认知复杂度 16 超阈值(S3776),把「求子集权重和 + 加权抽取」抽取为 PickWeightedIndexExcluding,主循环只剩单次抽取调用。行为不变(ConcurrentCryptoRandom.Next 阈值与累计比较逻辑逐行保留)。Closes #940

@AlianBlank
AlianBlank merged commit c292cf8 into main Nov 1, 2026
2 checks passed
@AlianBlank
AlianBlank deleted the fix/issue-940 branch November 1, 2026 12:40
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

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.

P1 [Sonar] Fix GameFrameX.Utility/RandomHelper.cs (1 issue)

1 participant