From 9326d3970fe6eedbcb042ac68aca3074aacef32f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Apr 2021 19:37:50 +0200 Subject: Fixed some minor bugs --- libs/libc/crt/crt0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/libc/crt/crt0.c b/libs/libc/crt/crt0.c index 3bd413f..d264d61 100644 --- a/libs/libc/crt/crt0.c +++ b/libs/libc/crt/crt0.c @@ -18,7 +18,7 @@ int _start(int argc, char **argv) u32 stamp = 0; assert(read("/dev/rtc", &stamp, 0, sizeof(stamp)) == sizeof(stamp) && stamp); srand(stamp); - rand_fill(&__stack_chk_guard, sizeof(__stack_chk_guard)); + __stack_chk_guard = rand(); exit(main(argc, argv)); -- cgit v1.2.3