Skip to content

Add test for custom RNG handler - #197

Merged
josephlr merged 1 commit into
masterfrom
custom
Jan 5, 2021
Merged

Add test for custom RNG handler#197
josephlr merged 1 commit into
masterfrom
custom

Conversation

@josephlr

Copy link
Copy Markdown
Member

See #194

This uses the fact that wasm32-unknown-unknown is an "unsupported" target. This means we can use the "custom" feature to define a custom handler, and then write tests to make sure that function is called.

@josephlrjosephlr mentioned this pull request Jan 5, 2021
6 tasks

@newpavlovnewpavlov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great idea!

@josephlr
josephlr merged commit 347a300 into masterJan 5, 2021
@josephlr
josephlr deleted the custom branch January 5, 2021 10:00
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
See rust-random#194
This uses the fact that `wasm32-unknown-unknown` is an "unsupported" target. This means we can use the `"custom"` feature to define a custom handler, and then write tests to make sure that function is called.
Sign up for freeto 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

@josephlr@newpavlov