spec: use rand, not Random.rand for 1.8 support

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>