| Index: Source/wtf/CryptographicallyRandomNumber.cpp
|
| diff --git a/Source/wtf/CryptographicallyRandomNumber.cpp b/Source/wtf/CryptographicallyRandomNumber.cpp
|
| index 285a5c95a9e31d312d5802416195d0875d884a0c..a25363d5207d39e24074184f03ef5698d95bdf67 100644
|
| --- a/Source/wtf/CryptographicallyRandomNumber.cpp
|
| +++ b/Source/wtf/CryptographicallyRandomNumber.cpp
|
| @@ -165,8 +165,8 @@ void ARC4RandomNumberGenerator::randomValues(void* buffer, size_t length)
|
|
|
| ARC4RandomNumberGenerator& sharedRandomNumberGenerator()
|
| {
|
| - AtomicallyInitializedStatic(ARC4RandomNumberGenerator*, randomNumberGenerator = new ARC4RandomNumberGenerator);
|
| - return *randomNumberGenerator;
|
| + AtomicallyInitializedStaticReference(ARC4RandomNumberGenerator, randomNumberGenerator, new ARC4RandomNumberGenerator);
|
| + return randomNumberGenerator;
|
| }
|
|
|
| }
|
|
|