Seed badrand later

This commit is contained in:
Imbus 2025-10-30 22:36:31 +01:00
parent 6e266e0905
commit 623f3e8335

View file

@ -46,10 +46,10 @@ void start() {
if (unlikely(id == 0)) {
/* Here we will do a bunch of initialization steps */
sbadrand(rtc_time_read() ^ swap64(rtc_time_read()));
memory_sweep(heap_start, heap_end);
buddy_init(heap_start, heap_end);
spinlock_init(&sl);
sbadrand(rtc_time_read() ^ swap64(rtc_time_read()));
for (int i = 0; i < banner_len; i++) uart_putc(banner[i]);
__sync_synchronize();
hold = 0;