summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/warnings.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2019-12-29 13:51:48 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2019-12-29 13:55:25 +0100
commitaa0c679f484347d20ab6f7c0f75f32f5e360cb89 (patch)
tree1471501c2d1effaa28cf933cf52681d635a41fc5 /lisp/emacs-lisp/warnings.el
parentd6922db49dea33ac2bca8b33d24763cc7b2e4cd7 (diff)
downloademacs-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/warnings.el')
0 files changed, 0 insertions, 0 deletions