Skip to content

chore(no_std): make sys_rand related code no_std#801

Open
kevaundray wants to merge 1 commit into
0xPolygonHermez:pre-develop-0.16.0from
kevaundray:kw/update-rand
Open

chore(no_std): make sys_rand related code no_std#801
kevaundray wants to merge 1 commit into
0xPolygonHermez:pre-develop-0.16.0from
kevaundray:kw/update-rand

Conversation

@kevaundray
Copy link
Copy Markdown
Contributor

Related to #793

In order to support rv64imac-unknown-none-elf or rv64im-unknown-none-elf in the future, ZiskOS would need to be no_std compatible. The sys_rand related code was using StdRng and the Mutex from the standard lib.

@cla-bot cla-bot Bot added the cla-signed label Feb 18, 2026
lazy_static = "1.5.0"
rand = "0.8.5"
spin = "0.9"
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

small_rng is no_std -- note that StdRng, what is code was previously using and SmallRng make no portability guarantees as mentioned in the docs

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant