summaryrefslogtreecommitdiffstats
path: root/qt-ui/plannerSettings.ui
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-02-14 16:16:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-14 07:53:13 -0800
commit0f2d0211c3cfebf2513969113bd4f992194d10da (patch)
tree6f1d35cadfb0aa138c02aed6987b70fd0e104511 /qt-ui/plannerSettings.ui
parent56de6b73f67d5ddeec74153303a27866e39279c7 (diff)
downloadsubsurface-0f2d0211c3cfebf2513969113bd4f992194d10da.tar.gz
divesite.c: use rand() instead of random()
random() is POSIX and seems to be missing in MINGW. it can return a 64bit (if 'long' is 64bit) but given ID's are 32bit rand() should suffice. also random() is technically a better algorithm but for cryptographically unsafe usage like generating IDs the stdlib's LCPRNG rand() should siffuce. also this patch makes it so that a true 32bit random value is returned. how random it is, is another topic. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/plannerSettings.ui')
0 files changed, 0 insertions, 0 deletions