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

[englishbreakfast] Switch to 256-bit seed for compile-time random consts #25954

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

vogelpi
Copy link
Contributor

@vogelpi vogelpi commented Jan 20, 2025

Previously, we were still using a shorter seed and topgen/secure_prng.py kept complaining about this. We don't really care for English Breakfast as this is never going to be taped out anyway that constantly seeing the warning is kind of annoying.

Just in case someone cares: the number added now has been generated with randomness from /dev/random using the following command:

od -vAn -N32 -tuL < /dev/random

This gives a random 32-byte number in the form of 4 64-bit unsigned integers which can then be shifted and added together.

@vogelpi vogelpi requested a review from a team as a code owner January 20, 2025 21:22
@vogelpi vogelpi requested review from hcallahan-lowrisc, rswarbrick, johannheyszl and nasahlpa and removed request for a team and hcallahan-lowrisc January 20, 2025 21:22
Copy link
Member

@nasahlpa nasahlpa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

Previously, we were still using a shorter seed and topgen/secure_prng.py
kept complaining about this. We don't really care for English Breakfast
as this is never going to be taped out anyway that constantly seeing
the warning is kind of annoying.

Just in case someone cares: the number added now has been generated
with randomness from /dev/random using the following command:

od -vAn -N32 -tuL < /dev/random

This gives a random 32-byte number in the form of 4 64-bit unsigned
integers which can then be shifted and added together.

Signed-off-by: Pirmin Vogel <[email protected]>
@vogelpi vogelpi force-pushed the englishbreakfast-seed branch from 7069116 to c2c5c57 Compare January 20, 2025 22:52
@vogelpi vogelpi merged commit 97151d2 into lowRISC:master Jan 21, 2025
38 checks passed
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.

2 participants