mirror of https://github.com/torvalds/linux.git
In the event that random_get_entropy() can't access a cycle counter or similar, falling back to returning 0 is really not the best we can do. Instead, at least calling random_get_entropy_fallback() would be preferable, because that always needs to return _something_, even falling back to jiffies eventually. It's not as though random_get_entropy_fallback() is super high precision or guaranteed to be entropic, but basically anything that's not zero all the time is better than returning zero all the time. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> |
||
|---|---|---|
| .. | ||
| Kbuild | ||
| asm-macros.h | ||
| asm-offsets.h | ||
| cache.h | ||
| cacheflush.h | ||
| checksum.h | ||
| cpuinfo.h | ||
| delay.h | ||
| elf.h | ||
| entry.h | ||
| io.h | ||
| irq.h | ||
| irqflags.h | ||
| kgdb.h | ||
| linkage.h | ||
| mmu.h | ||
| mmu_context.h | ||
| page.h | ||
| pgalloc.h | ||
| pgtable-bits.h | ||
| pgtable.h | ||
| processor.h | ||
| ptrace.h | ||
| registers.h | ||
| setup.h | ||
| shmparam.h | ||
| string.h | ||
| switch_to.h | ||
| syscall.h | ||
| syscalls.h | ||
| thread_info.h | ||
| timex.h | ||
| tlb.h | ||
| tlbflush.h | ||
| traps.h | ||
| uaccess.h | ||
| vmalloc.h | ||