from .php_executor import PHPExecutor
from dmoj.judgeenv import env


class Executor(PHPExecutor):
    name = 'PHP7'
    command = env['runtime'].get('php7')
    fs = ['.*\.so', '/etc/localtime$', '.*\.ini$']


initialize = Executor.initialize

from .php_executor import PHPExecutor
from dmoj.judgeenv import env


class Executor(PHPExecutor):
    name = 'PHP7'
    command = env['runtime'].get('php7')
    fs = ['.*\.so', '/etc/localtime$', '.*\.ini$', '/dev/urandom$']


initialize = Executor.initialize

Allow /dev/urandom for PHP 7
Allow /dev/urandom for PHP 7
  from .php_executor import PHPExecutor
  from dmoj.judgeenv import env
  
  
  class Executor(PHPExecutor):
      name = 'PHP7'
      command = env['runtime'].get('php7')
-     fs = ['.*\.so', '/etc/localtime$', '.*\.ini$']
+     fs = ['.*\.so', '/etc/localtime$', '.*\.ini$', '/dev/urandom$']
  
  
  initialize = Executor.initialize
  
Allow /dev/urandom for PHP 7
## Code Before:
from .php_executor import PHPExecutor
from dmoj.judgeenv import env


class Executor(PHPExecutor):
    name = 'PHP7'
    command = env['runtime'].get('php7')
    fs = ['.*\.so', '/etc/localtime$', '.*\.ini$']


initialize = Executor.initialize

## Instruction:
Allow /dev/urandom for PHP 7
## Code After:
from .php_executor import PHPExecutor
from dmoj.judgeenv import env


class Executor(PHPExecutor):
    name = 'PHP7'
    command = env['runtime'].get('php7')
    fs = ['.*\.so', '/etc/localtime$', '.*\.ini$', '/dev/urandom$']


initialize = Executor.initialize
