lib/talloc: Provide multiple-loading detection for libtalloc via rand()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 24 Feb 2015 00:43:54 +0000 (13:43 +1300)
committerJeremy Allison <jra@samba.org>
Fri, 9 Oct 2015 18:14:06 +0000 (20:14 +0200)
commit4a4664a80e20544097cdd075ca5d1423e6a9b364
treef4c2c52e6cf63f107be40e9f66f9b52e3ae7eeec
parent30ea897194c68c149d4986b22a5d964454bec258
lib/talloc: Provide multiple-loading detection for libtalloc via rand()

The use of rand() is strongly discrouanged, but here is it ideal, as we just want to select a different
set of random bytes if we are called again within the same process.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/talloc/talloc.c