Code

write_kafka plugin: Use 32bit random number when formatting a random key.
authorFlorian Forster <octo@collectd.org>
Mon, 5 Dec 2016 10:52:35 +0000 (11:52 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 5 Dec 2016 10:52:37 +0000 (11:52 +0100)
commit11011dc93691989513ff2101c221ea15dab5658a
tree253857814b79671c6e77189fae2d37c2ae4a3ba8
parent03eb7511c9346495a50442c2be9311c101b9ccc6
write_kafka plugin: Use 32bit random number when formatting a random key.

Previously, negative numbers would be truncated to "ffffffff" by the
buffer length on architectures where longs are 64 bit.

Fixes: #2074
src/write_kafka.c