Closed ghost closed 4 years ago
It's a configuration option:
https://invisible-island.net/mawk/CHANGES.html#t20140914
+ change default for configure option --enable-init-srand to enable this (discussion with Mike Brennan). + add -W random option to set initial srand() seed. ... + modify initialization of srand default seed from time of day to use gettimeofday, etc., so that successive runs of mawk are less likely to use the same seed value (suggested by Mike Brennan).
By the way, there's always a patch-date associated with mawk 1.3.4+
I mostly use PHP now as I grew tired of AWK shortcomings. Closing this.
With every commonly used implementation:
Running "srand" gives you the unix timestamp:
However Mawk 1.3.4 gives something else: