util: fixed generate_unique_strs() to be portable
authorAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:32 +0000 (11:39 +0100)
commitd0e82261a1f54af593e542ec08c4dbb44d9e6c3f
treecbe7854a117fdce4a3ca6464241f33b4db0de079
parent1baaaf885740e16e8db9a08316d02b185b795801
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.
(cherry picked from commit 72ae44918a6c8e0a11747441f2bbd5152022f98c)
lib/util/genrand.c