> > Sent: Friday, December 12, 2014 at 5:02 AM > > From: "Theo de Raadt" <dera...@cvs.openbsd.org> > > To: t...@cvs.openbsd.org > > Subject: Want to help upstream software improve their random? > > > > Not my business, but how do you handle cases of rand() & srand()-like > calls from software like awk?
awk in OpenBSD has been true-random since this commit: CVSROOT: /cvs Module name: src Changes by: mill...@cvs.openbsd.org 2011/04/20 16:28:39 Modified files: usr.bin/awk : run.c Log message: Stash the old seed when srand() is called and use it as the return value as per POSIX and the fine manual. Fix sent upstream to bwk. OK deraadt@ If you use srand() directly in awk, it reverts to the standards-defined behaviour. The same semantic is present in our ksh.