Use CHAR_BIT instead of assuming 8 bits
authorJonathan Wakely <jwakely@redhat.com>
Wed, 24 May 2017 19:27:28 +0000 (20:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 24 May 2017 19:27:28 +0000 (20:27 +0100)
commitb6784361760fc9d456b6deb8dcf8715b573bcb9e
tree95beafe26cca0c8bb49c273d0ede7a329b9b63b5
parent216bfadc5d4ef70af8010b420dc3318d45f3891f
Use CHAR_BIT instead of assuming 8 bits

* src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
instead of fixed number of bits.

From-SVN: r248428
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/random.cc