mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-09 08:33:11 +00:00
Deterministic validator row column distributio
This commit is contained in:
parent
f3f1e8664d
commit
67c8b09295
@ -32,11 +32,13 @@ class Neighbor:
|
||||
|
||||
|
||||
class Validator:
|
||||
i = 0
|
||||
def __init__(self, rowIDs, columnIDs):
|
||||
self.rowIDs = rowIDs
|
||||
self.columnIDs = columnIDs
|
||||
|
||||
def initValidator(nbRows, custodyRows, nbCols, custodyCols):
|
||||
random.seed(10 + Validator.i); Validator.i += 1
|
||||
rowIDs = set(random.sample(range(nbRows), custodyRows))
|
||||
columnIDs = set(random.sample(range(nbCols), custodyCols))
|
||||
return Validator(rowIDs, columnIDs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user