commit | 8c9cd85631b77fac0bc30ffb9f23b29c466d31c4 | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@opensourcerouting.org> | Sun Apr 19 14:40:02 2015 +0200 |
committer | David Lamparter <equinox@opensourcerouting.org> | Tue Apr 21 10:18:04 2015 +0200 |
tree | 73c0687a1306f4a274ba3a057f4913a5d77734fb | |
parent | 94bad67cd8fe7ad023a40547a1153a414d70fa0a [diff] |
bgpd: random() returns long bgpd was using unsigned to store a probability value to be used with random(). That, however, returns long, running into some warnings (and worst case, if RAND_MAX > UINT_MAX, won't work correctly. Just use long to shuffle the value around. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>