mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
Merge pull request #768 from sureshsundriyal/master
Miscellaneous fixes.
This commit is contained in:
commit
89cb6fbe76
1
AUTHORS
1
AUTHORS
@ -39,3 +39,4 @@ Nicolas Werner
|
||||
Matt Hayden
|
||||
Simos Xenitellis
|
||||
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(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])
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user