Merge pull request #768 from sureshsundriyal/master

Miscellaneous fixes.
This commit is contained in:
Tim Stack 2020-09-20 20:38:59 -07:00 committed by GitHub
commit 89cb6fbe76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

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

View File

@ -277,6 +277,7 @@ AS_IF([test $? -eq 0],
AM_CONDITIONAL(USE_INCLUDED_YAJL, test $HAVE_LOCAL_YAJL -eq 0)
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_FILES([Makefile])

View File

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

View File

@ -40,6 +40,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <random>
#include <tuple>
#include <string>
#include <vector>
@ -212,7 +213,9 @@ int main(int argc, char *argv[])
do {
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++) {
const auto &index_tuple = index[lpc];