Why are the random numbers all the same with MSYS2?
问题 I am trying to generate random numbers using std::random_device but each time I run the program they are the same. I tried the same code using an online IDE and it ran as expected. According to an answer here, this is a bug in Cygwin and MSYS2. How can I upgrade MSYS2? I tried running the commands pacman -Syu and pacman -Su in its terminal but it had errors: MSYS ~ $ pacman -Syuu error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown error: key