Skip to content

Commit

Permalink
fix frand win
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Aug 31, 2021
1 parent 63a628e commit f764d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeno/include/zinc/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static inline T frand(unsigned int i) {
template <class T = float>
static inline T frand() {
#ifdef _WIN32
return (T)rand() / T()RAND_MAX;
return (T)rand() / (T)RAND_MAX;
#else
return (T)drand48();
#endif
Expand Down

0 comments on commit f764d95

Please sign in to comment.