Closed
Description
Currently the "custom" feature is last in our precedence order for selecting implementations. The original idea behind this was to ensure that a crate couldn't (accidentally or intentionally) change the RNG source for a program.
Sometimes folks are targeting wasm32-unknown-unknown
, bu they are not targeting the web, but their deps are enabling the js
feature. #342 CC: @nickray
I would propose the following new precedence order:
- If on a supported target, use the standard implementation
- If
custom
feature is enabled, use the custom implementation - If on
wasm32-unknown-unknown
andjs
is enabled, use thewasm-bindgen
implementation.