Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the random value to be discarded #40

Closed
natebot13 opened this issue Mar 6, 2023 · 2 comments
Closed

Allow the random value to be discarded #40

natebot13 opened this issue Mar 6, 2023 · 2 comments

Comments

@natebot13
Copy link

[[nodiscard]] constexpr unsigned get()

Would like to request that the [[nodiscard]] here be removed as it could be useful to progress the internal state of the RNG while ignoring the return value.

@copyrat90
Copy link
Contributor

You can call bn::random::update() directly to progress the internal state of the RNG without getting the value.

https://gvaliente.github.io/butano/classbn_1_1random.html#af576b431d31a4cf348dfddf17b5b6526

@natebot13
Copy link
Author

Ah, I had completely missed that api. Thanks!

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

No branches or pull requests

2 participants