Mercurial > vim
diff runtime/doc/testing.txt @ 19350:76cb39bf1871 v8.2.0233
patch 8.2.0233: crash when using garbagecollect() in between rand()
Commit: https://github.com/vim/vim/commit/4f645c54efe33d7a11e314676e503118761f08a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 8 16:40:39 2020 +0100
patch 8.2.0233: crash when using garbagecollect() in between rand()
Problem: Crash when using garbagecollect() in between rand().
Solution: Redesign the rand() and srand() implementation. (Yasuhiro
Matsumoto, closes #5587, closes #5588)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Feb 2020 16:45:04 +0100 |
parents | 6fd567c927c0 |
children | 6c944fee0d7e |
line wrap: on
line diff
--- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -210,7 +210,6 @@ test_setmouse({row}, {col}) *test_set call test_setmouse(4, 20) call feedkeys("\<LeftMouse>", "xt") - test_settime({expr}) *test_settime()* Set the time Vim uses internally. Currently only used for timestamps in the history, as they are used in viminfo, and @@ -223,6 +222,10 @@ test_settime({expr}) *test_settime() Can also be used as a |method|: > GetTime()->test_settime() +test_srand_seed([seed]) *test_srand_seed()* + When [seed] is given this sets the seed value used by + `srand()`. When omitted the test seed is removed. + ============================================================================== 3. Assert functions *assert-functions-details*