Fix: RAND_bytes just returns 0/1, not length. Actually discover the size of key rather than hardcode a guess.