changed function name in random library