util: fixed generate_unique_strs() to be portable
commit72ae44918a6c8e0a11747441f2bbd5152022f98c
authorAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 11:47:45 +0000 (19 22:47 +1100)
committerJeremy Allison <jra@samba.org>
Mon, 19 Oct 2009 18:31:25 +0000 (19 11:31 -0700)
treecbe7854a117fdce4a3ca6464241f33b4db0de079
parent1a300b7a345f962591e356335aed005a8c304711
util: fixed generate_unique_strs() to be portable

'place' was going negative, and giving undefined results. The result
was duplicate names which gave errors in SMB2-DIR on PPC and other
systems.
lib/util/genrand.c