Skip to content

Commit f764d95

Browse files
author
archibate
committed
fix frand win
1 parent 63a628e commit f764d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zeno/include/zinc/random.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static inline T frand(unsigned int i) {
2222
template <class T = float>
2323
static inline T frand() {
2424
#ifdef _WIN32
25-
return (T)rand() / T()RAND_MAX;
25+
return (T)rand() / (T)RAND_MAX;
2626
#else
2727
return (T)drand48();
2828
#endif

0 commit comments

Comments
 (0)