commit 5569ec2abd2c8f31554a02587fda842e4da7eba3
parent d1d4462f5661e0d15176375ec297b3c59d0896c3
Author: Louis Burda <quent.burda@gmail.com>
Date: Thu, 24 Jun 2021 19:59:23 +0200
added more randomness to whitespace in ascii file
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checker/src/checker.py b/checker/src/checker.py
@@ -120,7 +120,7 @@ class STLDoctorChecker(BaseChecker):
else:
content = b"solid\n"
facet_count = rand.randint(4, 30)
- indent = b" " * rand.randint(1, 4)
+ indent = bytes([rand.choice(b"\t\n ") for i in range(rand.randint(1, 4))])
for fi in range(facet_count):
if malformed and randchoice == 0: # malformed by wrong keyword
content += indent * 1 + b"facet nornal "