You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK I noticed the comment of not supported random(). But if this break on every windows it is maybe better to have the switch in the opposite way or default to rand if random is not available.
Latest code don't compile on windows with vs 2015. Complain about random() not available in the
if NS_DISABLE_WS_RANDOM_MASK
return 0xefbeadde; /* generated with a random number generator, I swear */
else
if (sizeof(long) >= 4) {
return (uint32_t) random();
} else if (sizeof(long) == 2) {
return (uint32_t) random() << 16 | (uint32_t) random();
}
endif
}
The text was updated successfully, but these errors were encountered: