Skip to content

Conversation

@V10lator
Copy link
Contributor

THis removes some duplicated math function, removes local return values from math functions and adds the option to use the pseudo random number generator of the C library.

@coco875
Copy link
Contributor

coco875 commented Jul 18, 2025

some of this change are #215, but mainly not sure if we should move to cglm for all algebra

@MegaMech
Copy link
Contributor

Could you explain more about what PRNG is?

@V10lator
Copy link
Contributor Author

Could you explain more about what PRNG is?

A PRNG is a pseudo random number generator. Different to a real random number generator it isn't really random but pseudo, meaning it uses a seed and deterministic math to get random numbers. PRNGs are normally used when the randomness doesn't need to be secure but fast.

See also: https://en.wikipedia.org/wiki/Pseudorandom_number_generator

@V10lator
Copy link
Contributor Author

Oh and in case you ask why change it?

The mario kart / vanilla kart PRNG seems to be extremely simple and as a result biased towards specific numbers. This causes effects such as multiple players getting the same items in a row. With this PR it is possible to use the PrNG from the C standart library instead which is used in countless software and probably way less biased towards specific numbers.

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.

3 participants