crosvm/rand_ish
Chirantan Ekbote da69086e9f rand_ish: Generate random string from SimpleRng
Devices may not have access to /dev/urandom so refactor the random
string generation code so that it can also be used by SimpleRng.  Also
implement Iterator for SimpleRng to make the string generator
implementation easier.

BUG=b:152806644,b:159285544
TEST=unit tests

Change-Id: I245c90dc44cfa53a7e12343925b1e04a5df55255
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2260252
Auto-Submit: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Commit-Queue: Chirantan Ekbote <chirantan@chromium.org>
2020-06-24 06:44:56 +00:00
..
src rand_ish: Generate random string from SimpleRng 2020-06-24 06:44:56 +00:00
Cargo.toml edition: Update rand_ish crate to 2018 edition 2019-04-07 23:24:28 -07:00