The cap-rand crate provides a capability-based interface to random number generators via the [rand] crate.
cap-rand
rand