| { | ||
| "git": { | ||
| "sha1": "9d1a66fe46cee30e6c716812a9df467c653fa290" | ||
| "sha1": "1b93479b8ea275997771df15aa4dbd54ee01bd6d" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "fastrand" | ||
| version = "2.1.1" | ||
| version = "2.2.0" | ||
| authors = ["Stjepan Glavina <stjepang@gmail.com>"] | ||
@@ -19,0 +19,0 @@ build = false |
+4
-0
@@ -0,1 +1,5 @@ | ||
| # Version 2.2.0 | ||
| - Expose missing `fill` method for the global RNG. (#90) | ||
| # Version 2.1.1 | ||
@@ -2,0 +6,0 @@ |
@@ -142,2 +142,8 @@ //! A global, thread-local random number generator. | ||
| /// Fill a byte slice with random data. | ||
| #[inline] | ||
| pub fn fill(slice: &mut [u8]) { | ||
| with_rng(|r| r.fill(slice)) | ||
| } | ||
| macro_rules! integer { | ||
@@ -144,0 +150,0 @@ ($t:tt, $doc:tt) => { |
Sorry, the diff of this file is not supported yet