Permalink
Browse files

Switched MCRYPT_DEV_RANDOM for MCRYPT_DEV_URANDOM to fix slow encrypt…

…ion/decryption
  • Loading branch information...
1 parent b65ca01 commit b49576c2a4ad1a4f75fe2830e37fece359c3089e Ben Tadiar committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Dropbox/OAuth/Storage/Encrypter.php
@@ -17,7 +17,7 @@ class Encrypter
const MODE = MCRYPT_MODE_CBC;
const KEY_SIZE = 32;
const IV_SIZE = 16;
- const IV_SOURCE = MCRYPT_DEV_RANDOM;
+ const IV_SOURCE = MCRYPT_DEV_URANDOM;
/**
* Encryption key

0 comments on commit b49576c

Please sign in to comment.