]> granicus.if.org Git - vim/commit
patch 9.0.1015: without /dev/urandom srand() seed is too predictable v9.0.1015
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Mon, 5 Dec 2022 21:55:55 +0000 (21:55 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Dec 2022 21:55:55 +0000 (21:55 +0000)
commitf0a9c004825ab686270ee57260652cce25e61049
treee1e2abb369c58ae0057276158931822f8d39f5e6
parent25201016d5043954689a4c9f7833935294149404
patch 9.0.1015: without /dev/urandom srand() seed is too predictable

Problem:    Without /dev/urandom srand() seed is too predictable.
Solution:   Use micro seconds and XOR with process ID. (Yasuhiro Matsumoto,
            closes #11656)
src/evalfunc.c
src/testdir/test_random.vim
src/version.c