You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
510 B
25 lines
510 B
4 years ago
|
#include "libplatform/impl.h"
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
namespace mp4v2 { namespace platform { namespace number {
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
uint32_t
|
||
|
random32()
|
||
|
{
|
||
|
return uint32_t( ::random() );
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void
|
||
|
srandom( uint32_t seed )
|
||
|
{
|
||
|
::srandom( seed );
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
}}} // namespace mp4v2::platform::time
|