util: fixed generate_unique_strs() to be portable
authorAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)
commitd680729dfb09ebff844fb13a354cba1c0be22578
tree03cf0a05ba1675fa80e133e76f08ab03effd7bcd
parent729c4b3eeef132ea29d1145d276b63744acfa023
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