Merge pull request #768 from sureshsundriyal/master

Miscellaneous fixes.
pull/769/head
Tim Stack 4 years ago committed by GitHub
commit 89cb6fbe76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,3 +39,4 @@ Nicolas Werner
Matt Hayden Matt Hayden
Simos Xenitellis Simos Xenitellis
Finnegan Stack Finnegan Stack
Amos Bird

@ -277,6 +277,7 @@ AS_IF([test $? -eq 0],
AM_CONDITIONAL(USE_INCLUDED_YAJL, test $HAVE_LOCAL_YAJL -eq 0) AM_CONDITIONAL(USE_INCLUDED_YAJL, test $HAVE_LOCAL_YAJL -eq 0)
AM_CONDITIONAL(HAVE_LIBCURL, test x"$LIBCURL" != x"") AM_CONDITIONAL(HAVE_LIBCURL, test x"$LIBCURL" != x"")
AM_CONDITIONAL([DISABLE_DOCUMENTATION], [ test x"$cross_compiling" != x"no" ])
AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])

@ -483,8 +483,10 @@ uncrusty:
(cd $(srcdir) && uncrustify -c ../lnav.cfg --replace $(SOURCES) \ (cd $(srcdir) && uncrustify -c ../lnav.cfg --replace $(SOURCES) \
$(HEADERS)) $(HEADERS))
if !DISABLE_DOCUMENTATION
all-local: lnav all-local: lnav
env DUMP_INTERNALS_DIR=$(srcdir)/internals ./lnav Makefile env DUMP_INTERNALS_DIR=$(srcdir)/internals ./lnav Makefile
endif
install-exec-hook: install-exec-hook:
bash $(srcdir)/alpha-release.sh bash $(srcdir)/alpha-release.sh

@ -40,6 +40,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <random>
#include <tuple> #include <tuple>
#include <string> #include <string>
#include <vector> #include <vector>
@ -212,7 +213,9 @@ int main(int argc, char *argv[])
do { do {
size_t lpc; size_t lpc;
random_shuffle(index.begin(), index.end()); std::random_device rd;
std::mt19937 g(rd());
std::shuffle(index.begin(), index.end(), g);
for (lpc = 0; lpc < index.size(); lpc++) { for (lpc = 0; lpc < index.size(); lpc++) {
const auto &index_tuple = index[lpc]; const auto &index_tuple = index[lpc];

Loading…
Cancel
Save