mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: fix build in hosted mode for rand
The `rand` module exists now, which conflicts with the `rand` crate. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
55a09990f0
commit
80c41f1dfc
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ pub fn set_send_addr(send_addr: Sender<SocketAddr>) {
|
|||
|
||||
#[cfg(not(test))]
|
||||
fn generate_pid_key() -> [u8; 16] {
|
||||
use rand::{thread_rng, Rng};
|
||||
use ::rand::{thread_rng, Rng};
|
||||
let mut process_key = [0u8; 16];
|
||||
let mut rng = thread_rng();
|
||||
for b in process_key.iter_mut() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue