libc::getrandom need to be called inside unsafe and it is not cross-platform friendly. Change it to getrandom::getrandom that is safe and cross-platform friendly. Signed-off-by: Hui Zhu <teawater@antfin.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
libc::getrandom need to be called inside unsafe and it is not cross-platform friendly. Change it to getrandom::getrandom that is safe and cross-platform friendly. Signed-off-by: Hui Zhu <teawater@antfin.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||