Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-random/getrandom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: rust-random/getrandom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.1
Choose a head ref
  • 3 commits
  • 5 files changed
  • 3 contributors

Commits on Jan 25, 2025

  1. Add benchmarks for u32/u64 functions. (#582)

    This allows us to see the effect of any specicalized implementations for
    `getrandom::u32` or `getrandom::u64`. As expected, on Linux (which just
    uses the default implementation in `utils.rs`) there is no change:
    ```
    test bench_u32                 ... bench:         196.50 ns/iter (+/- 4.85) = 20 MB/s
    test bench_u32_via_fill        ... bench:         198.25 ns/iter (+/- 1.78) = 20 MB/s
    test bench_u64                 ... bench:         196.95 ns/iter (+/- 2.99) = 40 MB/s
    test bench_u64_via_fill        ... bench:         197.62 ns/iter (+/- 2.24) = 40 MB/s
    ```
    but when using the `rdrand` backend (which is specialized), there is a
    mesurable difference.
    ```
    test bench_u32                 ... bench:          16.84 ns/iter (+/- 0.09) = 250 MB/s
    test bench_u32_via_fill        ... bench:          18.40 ns/iter (+/- 0.28) = 222 MB/s
    test bench_u64                 ... bench:          16.62 ns/iter (+/- 0.06) = 500 MB/s
    test bench_u64_via_fill        ... bench:          17.70 ns/iter (+/- 0.08) = 470 MB/s
    ```
    josephlr authored Jan 25, 2025
    Configuration menu
    Copy the full SHA
    aa96363 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2025

  1. Configuration menu
    Copy the full SHA
    ac379da View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2025

  1. Release v0.3.1 (#589)

    ### Fixed
    - Build error on Android [#588]
    
    [#588]: #588
    newpavlov authored Jan 28, 2025
    Configuration menu
    Copy the full SHA
    2bb3959 View commit details
    Browse the repository at this point in the history
Loading