majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.35k stars 468 forks source link

Rand is always the same #145

Closed ViRb3 closed 1 year ago

ViRb3 commented 1 year ago

What happened?

Your rand is not seeded, so it always generates the same deterministic values:

I would like to ask though, why is this necessary in the first place? If you're downloading an app and a file with that name + version already exists, why add a random suffix at the end? IMO, ipatool should either replace the file or skip it (maybe --skip-existing flag?). Would be neat for automation too.

Version

2.0.2

Relevant log output

No response