Commit 99368c43 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[STYLE]

parent 3c593714
......@@ -107,7 +107,7 @@ osg::ref_ptr< osg::Image > wge::genWhiteNoiseImage( size_t sizeX, size_t sizeY,
for( size_t i = 0; i < channels * sizeX * sizeY * sizeZ; ++i )
{
// - stylechecker says "use rand_r" but I am not sure about portability.
unsigned char r = static_cast< unsigned char >( std::rand() % 255 ); // NOLINT
unsigned char r = static_cast< unsigned char >( std::rand() % 255 ); // NOLINT - no we want std::rand instead of rand_r
randomLuminance[ i ] = r;
}
......
......@@ -129,8 +129,7 @@ void WQtNetworkEditor::addModule( boost::shared_ptr< WModule > module )
// set the object at a random start position
time( &m_time );
netItem->setPos( ( std::rand() + m_time ) % 200,
( std::rand() + m_time ) % 200 );
netItem->setPos( ( std::rand() + m_time ) % 200, ( std::rand() + m_time ) % 200 ); // NOLINT - no we want std::rand instead of rand_r
m_scene->addItem( netItem );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment