From: Roy Marples Date: Tue, 3 May 2016 15:18:39 +0000 (+0000) Subject: Tell Coverity that we do need to call random() for IPv4LL addresses. X-Git-Tag: v6.11.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06054f528dd3470f263cabeed7c80f753c2c2cd7;p=thirdparty%2Fdhcpcd.git Tell Coverity that we do need to call random() for IPv4LL addresses. --- diff --git a/ipv4ll.c b/ipv4ll.c index d33762d9..31f1b207 100644 --- a/ipv4ll.c +++ b/ipv4ll.c @@ -61,6 +61,7 @@ ipv4ll_pick_addr(const struct arp_state *astate) /* RFC 3927 Section 2.1 states that the first 256 and * last 256 addresses are reserved for future use. * See ipv4ll_start for why we don't use arc4_random. */ + /* coverity[dont_call] */ addr.s_addr = ntohl(LINKLOCAL_ADDR | ((uint32_t)(random() % 0xFD00) + 0x0100));