Passed
Push — master ( 22acc6...f41365 )
by Amresh
02:01
created

fastest.fuzzers.primitive_fuzzer.fuzz   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A random_float() 0 2 1
A random_integers() 0 2 1
A random_ascii_chars() 0 3 1
1
import random
2
3
4
def random_integers(lower_limit=0, upper_limit=100):
5
    return random.randint(lower_limit, upper_limit)
6
7
8
def random_ascii_chars(max_char_len=1000):
9
    char_len = random_integers(lower_limit=0, upper_limit=max_char_len)
10
    return ''.join([chr(random_integers(0, 128)) for n in range(char_len)])
11
12
13
def random_float(lower_limit=0, upper_limit=100):
14
    return (random.random() * (upper_limit - lower_limit)) + lower_limit
15