[cfe-dev] [libcxx] random_device for Windows needs more storage

Richard legalize at xmission.com
Mon Oct 7 12:16:18 PDT 2013


In article <CANa4zJo+YND+HH3vz1Y-JymaLCjR2-QJkdLgFCWW27AYbP0YyA at mail.gmail.com>,
    Yaron Keren <yaron.keren at gmail.com> writes:

> Is it OK to modify the private member __f_ type from int to uint64_t?

Wouldn't intptr_t or uintptr_t be more appropriate?

"Handles" in Windows are more likely to be pointers masquerading as an
integer for opacity purposes.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>



More information about the cfe-dev mailing list