Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Salt is currently defined as char[2]. Should I encode the rand() as
> char[4] and send that, or skip null and still encode it as char[4].
There's no need to avoid nulls here, AFAICS. Making the salt a
fixed-length binary string seems like the best bet.
regards, tom lane