Skip to content

Remove usage of getrandom for rand dependency and for this crate #346

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

Merged
merged 2 commits into from
Aug 1, 2025

Conversation

andrei-ng
Copy link
Collaborator

@andrei-ng andrei-ng commented Jul 30, 2025

  • we use rand internally to create random names for div's and for file names, for that reason highly performant crypto and/or efficinet entropy generators are not a priority. Using rand with minimal features and no getrandom simplifies usage for downstream users as they don't need the custom WASM rustc flags for getrandom and wasm_js feature

Fixes #340

@andrei-ng andrei-ng changed the title remove rand dependency on getrandom package/feature Remove usage of getrandom for 'rand' dependency and for our crate Jul 30, 2025
@andrei-ng andrei-ng changed the title Remove usage of getrandom for 'rand' dependency and for our crate Remove usage of getrandom for rand dependency and for our crate Jul 30, 2025
- we use rand internally to create random names for div's and for file
 names, for that reason highly performant crypto and/or efficinet
 entropy generators are not a priority. Using rand with minimal features
 and no `getrandom` simplifies usage for downstream users as they don't
 need the custom WASM rustc flags for `getrandom` and `wasm_js` feature

- bump versions

Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
@andrei-ng andrei-ng changed the title Remove usage of getrandom for rand dependency and for our crate Remove usage of getrandom for rand dependency and for this crate Jul 30, 2025
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
@andrei-ng andrei-ng merged commit 4b93098 into main Aug 1, 2025
32 checks passed
@andrei-ng andrei-ng deleted the remove-getrandom branch August 1, 2025 08:33
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.

WASM not working with version 0.13.x?
1 participant