diff options
author | Marvin Borner | 2021-04-05 19:37:50 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-05 19:37:50 +0200 |
commit | 9326d3970fe6eedbcb042ac68aca3074aacef32f (patch) | |
tree | 9157b9e57b052012379e4103aaed3235d1b50e9e /libs/libc/crt | |
parent | ccc1dd7b4ba8ad5efe51aac32b26f0859d93fbe5 (diff) |
Fixed some minor bugs
Diffstat (limited to 'libs/libc/crt')
-rw-r--r-- | libs/libc/crt/crt0.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |