Skip to content

Commit f6d1f4e

Browse files
committed
Re-export rand_core from api::rng
This is ok to re-export rand_core, because it is part of our public API. It is also good to re-export it, because then users don't need to keep track of the exact version we use by simply using this re-export. Without this, users have to explicitly depend on rand_core and then tools like cargo upgrade will break them. Note that this is fairly common practice, for example https://docs.rs/crypto-common re-export rand_core.
1 parent 0e90faa commit f6d1f4e

File tree

1 file changed

+1
-0
lines changed
  • libraries/opensk/src/api

1 file changed

+1
-0
lines changed

libraries/opensk/src/api/rng.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
pub use rand_core;
1516
use rand_core::{CryptoRng, RngCore};
1617

1718
/// Random number generator.

0 commit comments

Comments
 (0)