We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63a628e commit f764d95Copy full SHA for f764d95
zeno/include/zinc/random.h
@@ -22,7 +22,7 @@ static inline T frand(unsigned int i) {
22
template <class T = float>
23
static inline T frand() {
24
#ifdef _WIN32
25
- return (T)rand() / T()RAND_MAX;
+ return (T)rand() / (T)RAND_MAX;
26
#else
27
return (T)drand48();
28
#endif
0 commit comments