22 Commits

Author SHA1 Message Date
Artyom Pavlov f68a940b4d Release v0.2.12 (#389) 2024-01-09 08:33:08 +03:00
BlackHoleFox 8aa4efb178 Document platform support policy (#387) 2024-01-04 23:55:54 +03:00
Joe Richey baf2198d2a Update README.md to have correct build status badge (#382) 2023-11-07 09:21:25 +03:00
Jared Ramon Elizan 8b36b3e634 README.md (#322)
fixed typo
2022-10-30 17:13:52 -07:00
Brian Smith 47a59dda25 Add getrandom_uninit_slice(dest: &mut [MaybeUninit<u8>]) -> .... (#291)
* Add `getrandom_uninit(dest: &mut [MaybeUninit<u8>]) -> ...`.

Add a public API for filling an `&mut [MaybeUninit<u8>]`. This will primarily
serve as the building block for more typeful APIs for constructing random
arrays.

Increase the MSRV to 1.36, as `MaybeUninit` was added in that release.

Fixes #226.

* Revert testing changes

Signed-off-by: Joe Richey <joerichey@google.com>

* Allow rdrand tests to work with new implementation

Signed-off-by: Joe Richey <joerichey@google.com>

* Add Additional benchmarks and buffer size

Signed-off-by: Joe Richey <joerichey@google.com>

* Use pointer casts instead of transmute

Signed-off-by: Joe Richey <joerichey@google.com>

* Avoid initializing the buffer in `getrandom_uninit` benchmarks.

* Benchmarks: Consume the result in `black_box`.

Signed-off-by: Joe Richey <joerichey@google.com>
Co-authored-by: Joe Richey <joerichey@google.com>
2022-10-20 19:09:20 -07:00
Joseph Richey b78e2e846d Update badges (#189)
Point the build status badges to point to Github Actions

Add badges for:
  - Downloads
  - License

Fix formatting to make updating easier

Signed-off-by: Joe Richey <joerichey@google.com>
2021-01-03 06:21:43 -08:00
Joe Richey 99260dfaef Update docs for 0.2
The main things here are clarifying how fallback functionatliy works.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-09-10 00:45:13 -07:00
Joe Richey 0a5017eadb Update MSRV to 1.34
Signed-off-by: Joe Richey <joerichey@google.com>
2020-09-08 05:31:43 -07:00
Joe Richey d1a84dbd0d error: Make internal_error! a function
Also make Error::code a const fn. These increase the Min Rust version to 1.33
2020-04-27 00:14:53 -07:00
Joseph Richey d6b75d1c05 log: Remove optional log dependancy (#131)
This feature isn't enabled by rand/rand_core and provides very little
error information that isn't already conveyed through our Error values.

This also simplifies the supported configuration space for getrandom.
We update the docs and CI to match this change.
2020-01-09 13:27:09 -08:00
Joseph Richey add45a3899 Remove dummy implementation (#107)
Removes the “dummy” feature and “wasm32-unknown-unknown” dummy impl
2019-10-15 23:40:05 -07:00
Artyom Pavlov 7449a087f2 Add dummy feature (#71) 2019-08-08 14:31:41 +00:00
Joseph Richey b69f832210 Remove libstd dependancy for Opening and Reading files (#58) 2019-08-06 10:07:22 +00:00
Artyom Pavlov ab44edf3c7 fix readme example 2019-08-03 18:27:11 +00:00
nipzu 0f411bb8d3 Update README 2019-04-06 16:01:01 +03:00
Артём Павлов [Artyom Pavlov] 9e844d5ee3 readme update 2019-03-22 21:45:22 +03:00
Artyom Pavlov 19c39fb890 Minor updates (#12) 2019-03-16 15:37:43 +00:00
Diggory Hardy d33356f55f Enable optional logging support 2019-03-12 17:39:20 +00:00
Diggory Hardy ae1e2aab25 Add note on min Rustc version 2019-02-25 10:37:22 +00:00
Diggory Hardy 0f371be445 Rename getrandom_os → getrandom_inner; more WASM doc 2019-02-18 14:38:53 +00:00
Diggory Hardy 4374fd7783 Add getrandom wrapper func and documentation 2019-02-18 12:10:29 +00:00
Diggory Hardy c9440a20bd Add library skeleton 2019-01-19 12:56:20 +00:00