]> git.lyx.org Git - lyx.git/commit
Do not use rand() to set a BranchList id
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 13 Sep 2024 09:07:05 +0000 (11:07 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 13 Sep 2024 09:09:30 +0000 (11:09 +0200)
commit9f40eaee15d53ce418a728d3ff3716541d35775f
treed93319806e755194e58da2e2555daf7e1cc27f6d
parent9b3c28178cf8835213e9da418dc66208a9afd6cd
Do not use rand() to set a BranchList id

Use a simple counting instead, beecause Coverity complains that rand()
is not safe, and counting is siimpler anyway.
src/BranchList.cpp
src/BranchList.h