Ignore:
Timestamp:
Dec 29, 2008, 11:54:28 PM (16 years ago)
Author:
[email protected]
Message:

Yet another attempt to fix Tiger.

Reviewed by NOBODY(Build fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/RandomNumber.cpp

    r39515 r39516  
    3030#include "RandomNumberSeed.h"
    3131
     32#include <limits>
    3233#include <limits.h>
    3334#include <stdint.h>
     
    5253    return static_cast<double>(u) / (static_cast<double>(UINT_MAX) + 1.0);
    5354#elif PLATFORM(DARWIN)
    54     return static_cast<double>(arc4random()) / (static_cast<double>(UINT32_MAX) + 1.0);
     55    return static_cast<double>(arc4random()) / (static_cast<double>(std::numeric_limits<uint32_t>::max()) + 1.0);
    5556#else
    5657    return static_cast<double>(rand()) / (static_cast<double>(RAND_MAX) + 1.0);
Note: See TracChangeset for help on using the changeset viewer.