[PATCH 1/1] make random seed function python3 compatible