Skip to content

Commit 4374bd1

Browse files
authored
修复get_random一个问题,添加Held配置文件 (#583)
1 parent 52bcb59 commit 4374bd1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

kernel/src/syscall/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Syscall {
7777
while count < len {
7878
let rand = rand();
7979
for offset in 0..4 {
80-
ret.push(rand >> (offset * 2));
80+
ret.push((rand >> (offset * 2)) as u8);
8181
count += 1;
8282
}
8383
}

user/dadk/config/held-0.1.0.dadk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Held",
3+
"version": "0.1.0",
4+
"description": "中断文本编辑器",
5+
"task_type": {
6+
"BuildFromSource": {
7+
"Git": {
8+
"url" : "https://git.mirrors.dragonos.org.cn/DragonOS-Community/Held.git",
9+
"revision": "76304e995f"
10+
}
11+
}
12+
},
13+
"depends": [],
14+
"build": {
15+
"build_command": "make install-dragonos"
16+
},
17+
"clean": {
18+
"clean_command": "make clean"
19+
},
20+
"install": {
21+
"in_dragonos_path": "/"
22+
}
23+
}

0 commit comments

Comments
 (0)