]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: use random() to pick initial DD seq#
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Jul 2016 15:23:38 +0000 (17:23 +0200)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 28 Jul 2016 11:27:47 +0000 (07:27 -0400)
commit833a7ff9cc14b92caf36c48ea87e59f68037046c
tree3f04d9e82126dfee4d24ddadd64e3884342f8066
parent60bad36fb798cecbd566129d88faeeccca7353c4
ospfd: use random() to pick initial DD seq#

While the idea for this came the other way around - removing
quagga_time() - using random() is actually a better idea here.  It's
seeded by time to begin with, but if ospfd restarts several times in a
short timespan it won't run straight into the same sequence number.

(Should also update the random seed to include microseconds so restarts
within a second use a different seq#)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospfd/ospf_nsm.c