SeattleTestbed / repy_v2

Seattle Testbed's Repy ("Restricted Python") sandbox, version 2
MIT License
12 stars 50 forks source link

randombytes() in repy V2 wil take a long time with default resources file. #5

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

The default resource file has a random resource of 1000. However the currently implemented randombytes() function in repy V2 consumes 1024 random resources. This will cause randombytes to take while to return a value since it will wait until the resource consumed drains in order to ensure we don't consume more then 1000 random resource.

choksi81 commented 10 years ago

Author: monzum Most of the restriction files have a random resource limit of 1024 or below. We will most likely increase this to around 10K or more.

choksi81 commented 10 years ago

Author: alexjh This has been resolved with r4345.