c++11: Simplify random generation code using C++11.

* src/misc/random.cc, src/misc/random.hh (srand, drand, mrand, rrand,
barand): Simplify using <random> from C++11.
(nrand, bmrand, prand): Remove these unused functions.
* src/tgbaalgos/randomgraph.cc: Adjust the use of barand.
* configure.ac: Do not check for srand48 and drand48.
This commit is contained in:
Alexandre Duret-Lutz 2013-12-18 23:42:25 +01:00
parent 7480470760
commit c64503fb33
4 changed files with 18 additions and 147 deletions

View file

@ -110,7 +110,7 @@ AX_CHECK_BUDDY
AX_CHECK_GSPNLIB
AC_CHECK_HEADERS([sys/times.h])
AC_CHECK_FUNCS([times srand48 drand48 kill alarm])
AC_CHECK_FUNCS([times kill alarm])
LT_CONFIG_LTDL_DIR([ltdl])
LT_INIT([win32-dll])