Commit f19a718f authored by Stefan Westerfeld's avatar Stefan Westerfeld

Fix compilation on clang++-10.

 - variable length array initialization is not possible on clang++
Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 06989a0e
......@@ -120,9 +120,10 @@ Random::seed (uint64_t seed, Stream stream)
buffer_pos = 0;
buffer.clear();
unsigned char plain_text[aes_key.size()] = { 0, };
unsigned char plain_text[aes_key.size()];
unsigned char cipher_text[aes_key.size()];
memset (plain_text, 0, sizeof (plain_text));
uint64_to_buffer (seed, &plain_text[0]);
plain_text[8] = uint8_t (stream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment