Better generation of random names for reply FIFO.

Related to issue #257
(backport from trunk 7078c0f)