mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
net_util: Change libc::getrandom to getrandom::getrandom
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>
This commit is contained in:
@@ -6,6 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
epoll = "4.3.1"
|
||||
getrandom = "0.2"
|
||||
libc = "0.2.102"
|
||||
log = "0.4.14"
|
||||
net_gen = { path = "../net_gen" }
|
||||
|
||||
Reference in New Issue
Block a user