]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Avoid random numbers in dm_test_devm_regmap()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:23 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit2177f924bf585d083fdbb3c1ff1479794ee8ccac
tree654abcb95b24b48669b66e40ce8d6b35fc55f4e6
parenta2cfad8ecc28923db6f826c01359c768980085e7
test: Avoid random numbers in dm_test_devm_regmap()

There is no good reason to use a sequence from rand() here. We may as well
invent our own sequence.

This should molify Coverity which does not use rand() being used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 312949)
test/dm/regmap.c