History log of /external/ltp/testcases/lib/tst_random.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
55fc3adc9b834664f3114ae0dc386ce8df4db745 11-May-2016 Chunyu Hu <chuhu@redhat.com> testcases/lib: Add tst_random

There is no $RANDOM in portable shell, therefore we need it in order to
get a random number.

Produces decimical integer in a given range. Tests can use it to
determine a random action.

+ documentation in the test-writing-guidelines

Signed-off-by: Chunyu Hu <chuhu@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/lib/tst_random.c