https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142

            Bug ID: 65142
           Summary: std::random_device Ignores Read Return Code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: code at leeclagett dot com

When std::random_device reads from the designated random file, it does not
check the return code from the read. libc++ throws an exception if 0 or less
bytes were read. Without this check, the returned value is completely or
partially unitialized.

Reply via email to