Skip to content

latest code complain over random() on windows  #309

@grodansparadis

Description

@grodansparadis

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

}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions