diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-29 13:51:48 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-29 13:55:25 +0100 |
commit | aa0c679f484347d20ab6f7c0f75f32f5e360cb89 (patch) | |
tree | 1471501c2d1effaa28cf933cf52681d635a41fc5 /lisp/emacs-lisp/bindat.el | |
parent | d6922db49dea33ac2bca8b33d24763cc7b2e4cd7 (diff) | |
download | emacs-aa0c679f484347d20ab6f7c0f75f32f5e360cb89.tar.gz emacs-aa0c679f484347d20ab6f7c0f75f32f5e360cb89.tar.bz2 emacs-aa0c679f484347d20ab6f7c0f75f32f5e360cb89.zip |
Avoid unbounded growth of cl-random-state components (bug#38753)
* lisp/emacs-lisp/cl-extra.el (cl-random):
Perform the modulo 2**23 operation before updating the state instead
of after. The result is always the same, but it prevents the state
from growing into arbitrary large bignums.
Patch from Christopher Wellons.
Diffstat (limited to 'lisp/emacs-lisp/bindat.el')
0 files changed, 0 insertions, 0 deletions