diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-08 16:40:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-08 16:40:39 +0100 |
commit | 4f645c54efe33d7a11e314676e503118761f08a7 (patch) | |
tree | 8d98ceaaf843e7087adf4103e34e3ee29b21acde /runtime | |
parent | 165315584d6587e287f54d6c8820e050114b5694 (diff) |
patch 8.2.0233: crash when using garbagecollect() in between rand()v8.2.0233
Problem: Crash when using garbagecollect() in between rand().
Solution: Redesign the rand() and srand() implementation. (Yasuhiro
Matsumoto, closes #5587, closes #5588)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 1 | ||||
-rw-r--r-- | runtime/doc/testing.txt | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 26e7d12de4..afbfd9f7e5 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2867,6 +2867,7 @@ test_refcount({expr}) Number get the reference count of {expr} test_scrollbar({which}, {value}, {dragging}) none scroll in the GUI for testing test_setmouse({row}, {col}) none set the mouse position for testing +test_srand_seed([seed]) none set seed for testing srand() test_settime({expr}) none set current time for testing timer_info([{id}]) List information about timers timer_pause({id}, {pause}) none pause or unpause a timer diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 7fb24e6307..f2a7cf16c5 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -210,7 +210,6 @@ test_setmouse({row}, {col}) *test_setmouse()* 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* |