How do i loop something a variable amount of times?

I have this code and I want to generate makeid what ever number they enter times var rl = require(“readline”); var prompts = rl.createInterface(process.stdin, process.stdout); prompts.question(“How many codes would you like to generate? “, function (number) { function makeid(length) { var result = ”; var characters = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789’; var charactersLength = characters.length; for (var i…

Details

Linux Kernel hangs waiting for interrupt

I am bringing up linux kernel 5.5.0-rc1 on arm64 based embedded system. The kernel initialization is done. but after that the kernel waits continuously for the interrupt. below is the backtrace (gdb) bt #0 arch_local_irq_enable () at /home/sami/linux/arch/arm64/include/asm/irqflags.h:37 #1 arch_cpu_idle () at /home/sami/linux/arch/arm64/kernel/process.c:126 #2 0xffff8000106eb8d4 in default_idle_call () at /home/sami/linux/kernel/sched/idle.c:94 #3 0xffff8000100d9e3c in cpuidle_idle_call ()…

Details