]> git.eshelyaron.com Git - emacs.git/commit
cl-make-random-state was not copying its arg
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Dec 2018 21:42:21 +0000 (13:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Dec 2018 21:42:47 +0000 (13:42 -0800)
commitf4ea7464516b22409f429e98595b97cbf8220f4c
tree8b48a82e1d3c11ce7629e553df614ec453ec332a
parentfda43a7bef499024fa5fcb32432e76c5839ee154
cl-make-random-state was not copying its arg

Problem reported by Xu Chunyang (Bug#33731).
* lisp/emacs-lisp/cl-extra.el (cl-make-random-state):
Use copy-sequence, not copy-tree, so that the record is copied.
* test/lisp/emacs-lisp/cl-extra-tests.el:
(cl-extra-test-cl-make-random-state): New test.
lisp/emacs-lisp/cl-extra.el
test/lisp/emacs-lisp/cl-extra-tests.el