Skip to content

Instantly share code, notes, and snippets.

@MasWag
Last active June 19, 2016 17:06
Show Gist options
  • Save MasWag/3c72caa717227d90248f78ac62eae429 to your computer and use it in GitHub Desktop.
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)
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