Optimize the WASI random_get implementation. (#4917)
* Optimize the WASI `random_get` implementation. Use `StdRng` instead of the `OsRng` in the default implementation of `random_get`. This uses a userspace CSPRNG, making `random_get` 3x faster in simple benchmarks. * Update cargo-vet audits for cap-std 0.25.3. * Update all cap-std packages to 0.25.3.
This commit is contained in:
@@ -15,7 +15,7 @@ wasi-common = { path = "../", version = "=2.0.0" }
|
||||
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=2.0.0" }
|
||||
wiggle = { path = "../../wiggle", version = "=2.0.0" }
|
||||
tokio = { version = "1.8.0", features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"] }
|
||||
cap-std = "0.25.0"
|
||||
cap-std = "0.25.3"
|
||||
anyhow = "1"
|
||||
io-lifetimes = { version = "0.7.0", default-features = false }
|
||||
|
||||
@@ -29,4 +29,4 @@ io-extras = "0.15.0"
|
||||
tempfile = "3.1.0"
|
||||
tokio = { version = "1.8.0", features = [ "macros" ] }
|
||||
anyhow = "1"
|
||||
cap-tempfile = "0.25.0"
|
||||
cap-tempfile = "0.25.3"
|
||||
|
||||
Reference in New Issue
Block a user