lib/util: Move idr_get_new_random() to new source file idtree_random.c
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Sep 2014 05:01:51 +0000 (15:01 +1000)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Sep 2014 16:11:11 +0000 (18:11 +0200)
commit1bf36f177b09980badeddf2ece64b1f29cda7416
tree37112300ce11f1f25890f41a06a08c4dc0989d22
parente0a5c43bd0ca097936604169177d5eb44a6e42a8
lib/util: Move idr_get_new_random() to new source file idtree_random.c

This function depends on genrand.c, which depends on lib/crypto.  This
way the other IDR tree code can be used without lib/crypto.

While doing this, create idtree.h and idtree_random.h and clean up the
includes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/util/idtree.c
lib/util/idtree.h [new file with mode: 0644]
lib/util/idtree_random.c [new file with mode: 0644]
lib/util/idtree_random.h [new file with mode: 0644]
lib/util/samba_util.h
lib/util/wscript_build