<div dir="rtl"><div dir="ltr">I'm trying to implement random_device for Windows using the CryptGenRandom API, as in the attached non-working code.</div><div dir="ltr"><br></div><div dir="ltr">The trouble is, I need to store a crypto handle sized 64 bits in random_device whereas it has only an int (likely less than 64 bits) private member for storage.</div>
<div dir="ltr"><br></div><div dir="ltr">Is it OK to modify the private member __f_ type from int to uint64_t?</div><div dir="ltr"><br></div><div dir="ltr">A uint64_t it can hold both the crypto handle on Windows and file handles on Linux.</div>
<div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"> </div></div>