Skip to content

Commit

Permalink
chore: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed Jul 23, 2024
1 parent f198fe2 commit a58423d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ All supported PRNGs and compatible structs are provided by the `bevy_prng` crate
#### `bevy_rand` feature activation
```toml
rand_core = "0.6"
bevy_rand = { version = "0.7", features = ["rand_chacha", "wyrand"] }
bevy_rand = { version = "0.8", features = ["rand_chacha", "wyrand"] }
```

#### `bevy_prng` feature activation
```toml
rand_core = "0.6"
bevy_rand = "0.7"
bevy_prng = { version = "0.7", features = ["rand_chacha", "wyrand"] }
bevy_rand = "0.8"
bevy_prng = { version = "0.8", features = ["rand_chacha", "wyrand"] }
```

The summary of what RNG algorithm to choose is: pick `wyrand` for almost all cases as it is faster and more portable than other algorithms. For cases where you need the extra assurance of entropy quality (for security, etc), then use `rand_chacha`. For more information, [go here](https://docs.rs/bevy_rand/latest/bevy_rand/tutorial/ch01_choosing_prng/index.html).
Expand Down Expand Up @@ -128,7 +128,7 @@ fn setup_npc_from_source(

| `bevy` | `bevy_rand` |
| ------ | ------------ |
| v0.14 | v0.7 |
| v0.14 | v0.7 - v0.8 |
| v0.13 | v0.5 - v0.6 |
| v0.12 | v0.4 |
| v0.11 | v0.2 - v0.3 |
Expand All @@ -138,7 +138,7 @@ The versions of `rand_core`/`rand` that `bevy_rand` is compatible with is as fol

| `bevy_rand` | `rand_core` | `rand` |
| ------------ | ----------- | ------ |
| v0.1 -> v0.7 | v0.6 | v0.8 |
| v0.1 -> v0.8 | v0.6 | v0.8 |

## Migrations

Expand Down

0 comments on commit a58423d

Please sign in to comment.