226 Commits

Author SHA1 Message Date
Diggory Hardy
076fd1208e Benchmarks: enable usage without feature flags 2019-06-11 10:32:42 +01:00
Diggory Hardy
5331b3e2bc Prepare rand 0.7.0-pre-0 2019-06-05 14:29:00 +01:00
Diggory Hardy
c1ba4210e8 Prepare rand_core 0.5 release 2019-06-05 14:27:45 +01:00
Vinzent Steinberg
2fe750670b rand_distr: Prepare 0.1 and 0.2 release 2019-06-05 14:53:05 +02:00
Diggory Hardy
ff121cff61 Use Hc128 on Emscripten
This is considered an ugly hack, but easier than making the new ChaChaRng
compatible with Emscripten. Potentially support for Emscripten will be dropped
in the future, if it doesn't get support for u128.
2019-06-03 15:39:22 +01:00
Diggory Hardy
33bd4040f6 Replace StdRng algorithm with ChaCha20 and adjust reseeding threshold 2019-06-03 15:39:21 +01:00
Diggory Hardy
41b9743055 Enable small_rng feature requirement for each benchmark
Not ideal but seems to work; see: https://github.com/rust-lang/cargo/issues/6945
2019-06-03 15:38:26 +01:00
Diggory Hardy
b7abfb619d Feature-gate the SmallRng generator 2019-06-03 15:38:07 +01:00
Diggory Hardy
1ea01ae80e Update features doc 2019-06-03 15:37:54 +01:00
Diggory Hardy
efd3b5c964 Switch Rand's test::rng to Pcg32
seq::test::test_slice_choose updated with better bounds
2019-06-03 15:37:12 +01:00
Diggory Hardy
c5a5ab1793 Fix support for getrandom without std 2019-05-28 10:54:17 +01:00
Vinzent Steinberg
afd3c8f55e Bump rand_xoshiro version 2019-05-22 15:03:07 +02:00
Vinzent Steinberg
0b966ebff8 rand_distr: Fix uniformity tests 2019-05-16 11:56:54 +02:00
Kaz Wesley
c9f4e2b56f use c2-chacha for stable, runtime-dispatched SIMD
Performance:
gen_bytes_chacha20: 254 MB/s -> 603 MB/s [on a Xeon L5630 (SSE4.1)]

Minor version bump:
the only breaking change is that no-std builds now require
default-features=false (std is required by default for runtime cpu
detection; no_std builds will use the best implementation supported by
the target-features/target-cpu enabled at compile time)

New functionality:
ChaChaXRng is parameterized by round count at compile time. Convenient
aliases for the typical 20/12/8 round implementations exposed. ChaChaRng
is aliased to ChaCha20Rng for backward compatibility.

Closes #667
2019-04-30 11:27:29 -07:00
Vinzent Steinberg
b8c3a76351 Depend on libc version required for pthread_atfork
Fixes #47.
2019-04-14 10:06:48 +02:00
Diggory Hardy
b83a4c5800 Bump version requirement on getrandom to 0.1.1 2019-04-05 16:22:42 +01:00
Diggory Hardy
b231ac20cc Remove dependence on rand_jitter
This is a breaking change for anyone using rngs::JitterRng;
such users should switch to rand_jitter::JitterRng.
2019-04-03 15:23:17 +01:00
Diggory Hardy
23e1f045c0 Re-implement OsRng in Rand
This is controversial: a small amount of code redundancy to
avoid an extra import.
2019-04-03 15:23:17 +01:00
Diggory Hardy
1976a7f7b0 Replace rand_os implementation with shim around getrandom 2019-04-03 15:23:17 +01:00
Diggory Hardy
57ec955dcc Fix benchmark test 2019-03-29 07:46:05 +00:00
Diggory Hardy
58f14da01f Add rand_distr crate
The lib.rs file has been adjusted significantly; all other
contents are copied from rand with minimal fixes.
2019-03-29 07:45:35 +00:00
Diggory Hardy
d0243f4949 Remove dependence on Xorshift, ChaCha and Isaac crates 2019-03-23 12:26:43 +00:00
Xidorn Quan
51821a9417 Add '/' to all documents on github.io 2019-03-10 11:09:28 +11:00
Diggory Hardy
6357a4cb5d rand: remove unused winapi dependency
Both usages have moved to sub-crates now
2019-02-04 10:46:43 +00:00
Erick Tryzelaar
1d0d26ca95 Bump version, and document fuchsia_cprng change 2019-01-25 08:22:58 -08:00
Diggory Hardy
67c856bfe9 Disable std feature by default in rand_core and rand_jitter
Implements #702
Resolves #645
2019-01-23 12:50:20 +00:00
Stephen Sherratt
a2ffbf51a7 Merge remote-tracking branch 'upstream/master' into wasm-bindgen-test 2019-01-18 23:21:35 +00:00
Stephen Sherratt
23c47fdcd6 Add minimal wasm-bindgen test crate 2019-01-12 14:07:40 +00:00
Artyom Pavlov
4dfd2f4213
Merge branch 'master' into jitter 2019-01-08 18:47:56 +00:00
Diggory Hardy
514248197b Merge remote-tracking branch 'origin/master' and update changelog 2019-01-08 12:36:05 +00:00
Diggory Hardy
afc9d9a6b8
Merge pull request #670 from akash-fortanix/sgx-target
Add support for x86_64-fortanix-unknown-sgx target
2019-01-08 12:34:48 +00:00
Diggory Hardy
26c0ca56f8 Bump version number: 0.6.4 2019-01-08 10:39:57 +00:00
Артём Павлов [Artyom Pavlov]
58ea96147d support no_std 2019-01-07 07:11:14 +03:00
Артём Павлов [Artyom Pavlov]
1e6b02f02e Split JitterRng into a separate crate 2019-01-07 06:48:07 +03:00
Diggory Hardy
88f36aa3a5 Bump version number and changelog 2019-01-04 16:49:02 +00:00
Diggory Hardy
ec58ff0479 Re-export optional rand_os WASM dependencies as features, and make std require rand_os 2019-01-04 16:44:20 +00:00
Diggory Hardy
cf5e07fe95 Fix rand_xoshiro dependencies 2019-01-04 11:39:47 +00:00
Diggory Hardy
3b7cf7a1e8 Prepare rand version 0.6.2 release 2019-01-03 14:43:06 +00:00
akashfortanix
727c70f4f1 support sgx-target 2019-01-01 17:05:17 +05:30
Diggory Hardy
808cd54e07 rand_os: doc and cargo improvements 2018-12-29 15:29:51 +00:00
Artyom Pavlov
38f7be68a9
Merge branch 'master' into rand_os 2018-12-27 14:59:34 +00:00
Diggory Hardy
5a67e325ae
Merge pull request #642 from vks/xoshiro
Import xoshiro crate
2018-12-21 10:29:13 +00:00
Alex Crichton
e59539b86a Move rustc_version dep to autocfg
The `rustc_version` dependency is weighty and suffers from
Kimundi/rustc-version-rs#11 which makes it more difficult to change
rustc over time.
2018-12-13 07:59:42 -08:00
Diggory Hardy
fdd78bc2e2 Switch documentation links primarily to rust-random.github.io; revise shields 2018-11-22 19:27:08 +00:00
Diggory Hardy
a28fc75c89 Prepare 0.6.1 release 2018-11-22 17:51:17 +00:00
newpavlov
9fcc652de8 return winapi to rand 2018-11-21 15:48:39 +03:00
newpavlov
dfbeeb35dd fix typo 2018-11-21 13:57:28 +03:00
Artyom Pavlov
f8ed1d6ef2
Merge branch 'master' into rand_os 2018-11-21 10:52:39 +00:00
Alex Crichton
995901c6e4 Disable default features of libc
No need for it to be activated as `std` isn't a necessary dependency!
Should help out with `no_std` projects in some situations.
2018-11-19 21:58:17 -08:00
newpavlov
5857a0aa22 split OS RNG into rand_os 2018-11-14 21:38:24 +03:00