1#!/usr/bin/env python
2
3import os, sys, mmap
4from random import randint
5
6CAP = 0x20
7RANDADDMAX = 0x20
8
9with open(sys.argv[1], "r+b") as f:
10  map = mmap.mmap(f.fileno(), 0)
11  for index, char in enumerate(map):
12    if ord(char) < CAP:
13      map[index] = chr(ord(char) + randint(0, RANDADDMAX))
14  map.close()
15