aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-22 17:04:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-22 17:04:05 -0300
commit7f7cf08fff1f66a9c57abca04a19aeb64f804f15 (patch)
tree23f48d29267bcf467556f90cf68003e071b5b89d
parent450371836069d844781ee3f02ae2d44b324359b8 (diff)
downloadckandumper-7f7cf08fff1f66a9c57abca04a19aeb64f804f15.tar.gz
ckandumper-7f7cf08fff1f66a9c57abca04a19aeb64f804f15.tar.bz2
Initialize the PRNG
-rwxr-xr-xckandumper1
1 files changed, 1 insertions, 0 deletions
diff --git a/ckandumper b/ckandumper
index 928e11a..e2fef62 100755
--- a/ckandumper
+++ b/ckandumper
@@ -318,6 +318,7 @@ class CkanDumper:
package_downloads.append([resource['url'], resource_file])
if self.randomize == True:
+ random.seed()
random.shuffle(package_downloads)
stats = self.download.get(package_downloads)