mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: fix pid generation for non-test case
When compiling under non-test scenarios, the `rand` create conflicts with the new `rand` module. Disambiguate this field. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
168ffe004e
commit
1f1a535801
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,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