Passed
Push — master ( 43f3d6...14c447 )
by Amresh
01:19
created

fastest.generator.byte_strings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A gen_string() 0 2 1
1
import random
2
import binascii
3
4
5
def gen_string(length=8):
6
    return '0b'+''.join([random.choice(['0', '1']) for _ in range(length)])
7