Numerical upscaling of the permeability of a randomly cracked porous medium