Last active
June 19, 2016 17:06
-
-
Save MasWag/3c72caa717227d90248f78ac62eae429 to your computer and use it in GitHub Desktop.
patch for mawk to fix rand in BSD (apply to bi_funct.c)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
887c887 | |
< sp->dval = ((double) value) / RAND_MAX; | |
--- | |
> sp->dval = ((double) value) / (unsigned long)(MAWK_RAND_MAX); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment