| Index: Source/wtf/CryptographicallyRandomNumber.h
|
| diff --git a/Source/wtf/CryptographicallyRandomNumber.h b/Source/wtf/CryptographicallyRandomNumber.h
|
| index 9b89f5c0e34bf471f24ca121b3ee0f7bd90e233b..53eb5c9846c6dc15b5f9358033c6d29109c0fa6f 100644
|
| --- a/Source/wtf/CryptographicallyRandomNumber.h
|
| +++ b/Source/wtf/CryptographicallyRandomNumber.h
|
| @@ -20,7 +20,7 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| #ifndef WTF_CryptographicallyRandomNumber_h
|
| @@ -28,10 +28,16 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include "wtf/WTFExport.h"
|
| +
|
| namespace WTF {
|
|
|
| -uint32_t cryptographicallyRandomNumber();
|
| -void cryptographicallyRandomValues(void* buffer, size_t length);
|
| +typedef void (*RandomNumberSource)(unsigned char*, size_t);
|
| +
|
| +WTF_EXPORT void setRandomSource(RandomNumberSource);
|
| +
|
| +WTF_EXPORT uint32_t cryptographicallyRandomNumber();
|
| +WTF_EXPORT void cryptographicallyRandomValues(void* buffer, size_t length);
|
|
|
| }
|
|
|
|
|