summaryrefslogtreecommitdiff
path: root/obnamlib/bag_store.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-05-16 07:58:57 +0300
committerLars Wirzenius <liw@liw.fi>2015-05-16 11:45:06 +0300
commit2bceeae41eef43b9142d7163a45229920be9067d (patch)
treec410be22fa0ebea1a0df719125e247398c50118a /obnamlib/bag_store.py
parent37ad33ebcc21da980a1394f6f42b7b7510501bef (diff)
downloadobnam-2bceeae41eef43b9142d7163a45229920be9067d.tar.gz
Fix bag store to use real id range
Diffstat (limited to 'obnamlib/bag_store.py')
-rw-r--r--obnamlib/bag_store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/bag_store.py b/obnamlib/bag_store.py
index cf19db17..67c98a22 100644
--- a/obnamlib/bag_store.py
+++ b/obnamlib/bag_store.py
@@ -91,7 +91,7 @@ class IdInventor(object):
def _next_id(self):
if self._prev_id is None:
- self._prev_id = random.randint(0, 1024)
+ self._prev_id = random.randint(0, obnamlib.MAX_ID)
else:
self.prev_id += 1 # pragma: no cover