change the way of assertion

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Add gen-rand-dag.c

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>