Skip to content

Commit

Permalink
Fix weird behavior of getline on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Feb 25, 2024
1 parent 5b37294 commit 39b4187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/input-line/gen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import random
import sys

table = bytes(random.randint(33, 255) for _ in range(256))
sys.stdout.buffer.write(b"\n".join(
random.randbytes(random.randint(0, 2000))
random.randbytes(random.randint(0, 2000)).translate(table)
for _ in range(100000)
))

0 comments on commit 39b4187

Please sign in to comment.