Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update rand crate to 0.8 #2893

Merged
merged 12 commits into from
Jan 25, 2022
Merged

update rand crate to 0.8 #2893

merged 12 commits into from
Jan 25, 2022

Commits on Jan 25, 2022

  1. deps: update rand to 0.8

    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    cae6bc5 View commit details
    Browse the repository at this point in the history
  2. tests: update random_chars generator to map u8 to char

    Fix 'value of type `char` cannot be built from `std::iter::Iterator<Item=u8>`' for split test.
    
    refs: https://docs.rs/rand/0.8.4/rand/distributions/struct.Alphanumeric.html#example
    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    771c9f5 View commit details
    Browse the repository at this point in the history
  3. tests: update test_random to take range

    Fix 'error[E0061]: this function takes 1 argument but 2 arguments were supplied'.
    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    1e0dc6c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a342df0 View commit details
    Browse the repository at this point in the history
  5. shuf: add deprecated rand crate ReadRng adapter

    It is deprecated pending future removal. This version copied from:
    https://github.com/rust-random/rand/blob/0.8.4/src/rngs/adapter/read.rs
    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    6bcca01 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2630894 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a6f8d1d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a950c98 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2b19dd2 View commit details
    Browse the repository at this point in the history
  10. factor: update quickcheck dev dep to 1.0.3

    quickcheck <1 uses rand 0.6.x which results in E0599 errors.  Upgrading resolves that error and lets
    us remove the older rand version from our deps.
    
    refs: https://stackoverflow.com/questions/56901973/errore0599-no-method-named-gen-found-for-type-mut-g-in-the-current-scope/56902740#56902740
    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    c037382 View commit details
    Browse the repository at this point in the history
  11. factor: tests: update Arbitrary impl for Factors

    Upstream removed the Gen trait and made the gen method private in
    BurntSushi/quickcheck@d286e4d
    g-k committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    e24ecea View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e6fdf07 View commit details
    Browse the repository at this point in the history