Skip to content

Switch dice RNG - #2473

Open
mark9064 wants to merge 1 commit into
InfiniTimeOrg:mainfrom
mark9064:dice-rng
Open

Switch dice RNG#2473
mark9064 wants to merge 1 commit into
InfiniTimeOrg:mainfrom
mark9064:dice-rng

Conversation

@mark9064

@mark9064 mark9064 commented Aug 9, 2026

Copy link
Copy Markdown
Member

The mersenne twister uses multiple KBs of state and is not needed for a dice app in terms of RNG quality

When we pick up GCC16, we can switch to philox4x32

This is an alternative to #2385: while I agree that PR is a better RNG than the one here, I don't think it's worth carrying a new dependency / implementation for it

@mark9064 mark9064 added the maintenance Background work label Aug 9, 2026
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Build size and comparison to main:

Section Size Difference
text 385024B -208B
data 944B 0B
bss 22640B 0B

Run in InfiniEmu

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

Labels

maintenance Background work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant