https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- We should do the same, [rand.device] says: Throws: A value of an implementation-defined type derived from exception if a random number could not be obtained.