File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -580,25 +580,3 @@ def write_random_bitstrings(self, n):
580580 bs = Bitstring .init_random (self .bits )
581581 self .write (bs , bs )
582582
583-
584- def gen_sdm (scanner_type ):
585- bits = 1000
586- sample = 1000000
587- address_space = AddressSpace .init_random (bits , sample )
588- counter = Counter .init_zero (bits , sample )
589- sdm = SDM (address_space , counter , 451 , scanner_type )
590- return sdm
591-
592- def test_read_write (sdm ):
593- bs1 = Bitstring (bits )
594- print (bs1 .to_b64 ())
595- sdm .write (bs1 , bs1 )
596- bs2 = sdm .read (bs1 )
597- print (bs2 .to_b64 ())
598-
599-
600- def gen_all ():
601- sdm_linear = gen_sdm (SDM_SCANNER_LINEAR )
602- sdm_thread = gen_sdm (SDM_SCANNER_THREAD )
603- sdm_opencl = gen_sdm (SDM_SCANNER_OPENCL )
604- return sdm_linear , sdm_thread , sdm_opencl
You can’t perform that action at this time.
0 commit comments