commit fb8d6ba
chld
·
2026-10-27 12:55:53 +0000 UTC
parent 8309dc1
replace random_in using unix path with number based approach
M
uxn.c
+7,
-0
1@@ -730,10 +730,17 @@ static Uint8 datetime_in(Device*dev,Uint8 id) {
2 }
3 }
4
5+/*
6 static Uint8 random_in(Device*dev,Uint8 id) {
7 Uint8 x[1];
8 if(read(randomfd,x,1)!=1) err(1,"Cannot read random numbers");
9 return *x;
10+ }*/
11+
12+static Uint8 random_in(Device *dev, Uint8 id)
13+{
14+ (void)dev; (void)id;
15+ return (Uint8)(rand() & 0xFF);
16 }
17
18 static void set_cursor(void) {
M
uxn.o
+0,
-0