From 424dc57424ee17de77d689443f95d2e1bed72f4a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 17:38:40 +0200 Subject: Added random number generator --- apps/wm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index 262270a..f3ac901 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -18,6 +19,8 @@ void onkey(u32 scancode) int main(int argc, char **argv) { + srand(time()); + printf("ARGC: %d\n", argc); printf("[%s loaded]\n", argv[0]); -- cgit v1.2.3