Absolucy / Absolucy/nanorand-rs

cannot find function `backup_entropy` in this scope for wasm target even though source seed always provided

オープン
#33 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
251
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

Apologies for asking a question by using an issue - I'm new to rust, and I wasn't sure how to deal with this myself.

I am wanting to reliably reproduce/shuffle vast quantities of data in wasm (yew-rs) by way of a seed provided by a server:
```rust
let mut rng = WyRand::new_seed(server_seed);
rng.shuffle(&renumber);
```
I don't think I need an additional source of entropy, since WyRand reproduces the same data for the same seed?

``` Compiling rand_core v0.6.3
error[E0425]: cannot find function `backup_entropy` in this scope
--> /home/krolaw/.cargo/registry/src/github.com-1ecc6299db9ec823/nanorand-0.6.1/src/entropy/mod.rs:51:2
|
51 | backup_entropy(out);
| ^^^^^^^^^^^^^^ not found in this scope
```
Cargo.toml entry:
```toml
nanorand = { version = "0.6.1", features = ["wyrand"] }
```
Thanks.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。