mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 13:16:31 +00:00
修复get_random一个问题,添加Held配置文件 (#583)
This commit is contained in:
@ -77,7 +77,7 @@ impl Syscall {
|
||||
while count < len {
|
||||
let rand = rand();
|
||||
for offset in 0..4 {
|
||||
ret.push(rand >> (offset * 2));
|
||||
ret.push((rand >> (offset * 2)) as u8);
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user