randomtest fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
31 files changed