aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-01-09 23:26:03 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-02-05 14:00:59 +0000
commitc97614d98fc7ab040851b7fe1bc4cb575ce8c627 (patch)
tree13f856aeae697cbcc6ec9da37efe74aee9f844b0 /src/nvim/testdir
parent061b06a8ae2e49e7921080ea4a1cc157e704bb28 (diff)
downloadrneovim-c97614d98fc7ab040851b7fe1bc4cb575ce8c627.tar.gz
rneovim-c97614d98fc7ab040851b7fe1bc4cb575ce8c627.tar.bz2
rneovim-c97614d98fc7ab040851b7fe1bc4cb575ce8c627.zip
vim-patch:8.1.2356: rand() does not use the best algorithm
Problem: rand() does not use the best algorithm. Solution: use xoshiro128** instead of xorshift. (Kaito Udagawa, closes vim/vim#5279) https://github.com/vim/vim/commit/f8c1f9200c4b50969a8191a4fe0b0d09edb38979
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_random.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_random.vim b/src/nvim/testdir/test_random.vim
index 46091836d4..ed98433b94 100644
--- a/src/nvim/testdir/test_random.vim
+++ b/src/nvim/testdir/test_random.vim
@@ -2,12 +2,12 @@
func Test_Rand()
let r = srand(123456789)
- call assert_equal([123456789, 362436069, 521288629, 88675123], r)
- call assert_equal(3701687786, rand(r))
- call assert_equal(458299110, rand(r))
- call assert_equal(2500872618, rand(r))
- call assert_equal(3633119408, rand(r))
- call assert_equal(516391518, rand(r))
+ call assert_equal([1573771921, 319883699, 2742014374, 1324369493], r)
+ call assert_equal(4284103975, rand(r))
+ call assert_equal(1001954530, rand(r))
+ call assert_equal(2701803082, rand(r))
+ call assert_equal(2658065534, rand(r))
+ call assert_equal(3104308804, rand(r))
" Nvim does not support test_settime
" call test_settime(12341234)