Use arc4random() is available in notify_set_timer()
Include config.h so arc4random() is used
Remove unused variables