Mercurial > vim
comparison src/version.c @ 31363:0608de106485 v9.0.1015
patch 9.0.1015: without /dev/urandom srand() seed is too predictable
Commit: https://github.com/vim/vim/commit/f0a9c004825ab686270ee57260652cce25e61049
Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Date: Mon Dec 5 21:55:55 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Dec 2022 23:00:05 +0100 |
parents | abb9d25924d8 |
children | 040b59b92dca |
comparison
equal
deleted
inserted
replaced
31362:7fc63cd1c462 | 31363:0608de106485 |
---|---|
693 NULL | 693 NULL |
694 }; | 694 }; |
695 | 695 |
696 static int included_patches[] = | 696 static int included_patches[] = |
697 { /* Add new patch number below this line */ | 697 { /* Add new patch number below this line */ |
698 /**/ | |
699 1015, | |
698 /**/ | 700 /**/ |
699 1014, | 701 1014, |
700 /**/ | 702 /**/ |
701 1013, | 703 1013, |
702 /**/ | 704 /**/ |