use nrand48 instead of rand_r

rand_r is not supported on Android.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2 files changed