17 lines
236 B
Python
17 lines
236 B
Python
#!/usr/bin/env python3
|
|
|
|
from faker import Faker
|
|
|
|
def main():
|
|
f = Faker()
|
|
N = 1000000
|
|
ips = set()
|
|
while len(ips) < N:
|
|
ips.add(f.ipv4())
|
|
|
|
for ip in ips:
|
|
print(ip)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|