@@ -33,8 +33,7 @@ changes since the `0.3` series, but nevertheless contains some significant
33
33
new code, including a new "external" entropy source (` JitterRng ` ) and ` no_std `
34
34
support.
35
35
36
- Version ` 0.5 ` is in development and contains significant performance
37
- improvements for the ISAAC random number generators.
36
+ Version ` 0.5 ` is in development and will contain significant breaking changes.
38
37
39
38
## Examples
40
39
@@ -68,21 +67,22 @@ println!("i32: {}, u32: {}", rng.gen::<i32>(), rng.gen::<u32>())
68
67
By default, ` rand ` is built with all stable features available. The following
69
68
optional features are available:
70
69
70
+ - ` alloc ` can be used instead of ` std ` to provide ` Vec ` and ` Box `
71
71
- ` i128_support ` enables support for generating ` u128 ` and ` i128 ` values
72
+ - ` log ` enables some logging via the ` log ` crate
72
73
- ` nightly ` enables all unstable features (` i128_support ` )
74
+ - ` serde-1 ` enables serialisation for some types, via Serde version 1
73
75
- ` std ` enabled by default; by setting "default-features = false" ` no_std `
74
76
mode is activated; this removes features depending on ` std ` functionality:
75
-
76
- - `OsRng` is entirely unavailable
77
- - `JitterRng` code is still present, but a nanosecond timer must be
78
- provided via `JitterRng::new_with_timer`
79
- - Since no external entropy is available, it is not possible to create
80
- generators with fresh seeds (user must provide entropy)
81
- - `thread_rng`, `weak_rng` and `random` are all disabled
82
- - exponential, normal and gamma type distributions are unavailable
83
- since `exp` and `log` functions are not provided in `core`
84
- - any code requiring `Vec` or `Box`
85
- - ` alloc ` can be used instead of ` std ` to provide ` Vec ` and ` Box `
77
+ - ` OsRng ` is entirely unavailable
78
+ - ` JitterRng ` code is still present, but a nanosecond timer must be
79
+ provided via ` JitterRng::new_with_timer `
80
+ - Since no external entropy is available, it is not possible to create
81
+ generators with fresh seeds (user must provide entropy)
82
+ - ` thread_rng ` , ` weak_rng ` and ` random ` are all disabled
83
+ - exponential, normal and gamma type distributions are unavailable
84
+ since ` exp ` and ` log ` functions are not provided in ` core `
85
+ - any code requiring ` Vec ` or ` Box `
86
86
87
87
## Testing
88
88
0 commit comments