Skip to content

Commit

Permalink
core: rand - removed history from files
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed May 21, 2017
1 parent ae66452 commit 572acbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions src/core/rand/fastrand.c
@@ -1,5 +1,5 @@
/*
* fast pseudo random generation
* fast pseudo random generation
*
* Copyright (C) 2007 iptelorg GmbH
*
Expand All @@ -16,10 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
*History:
*--------
* 2007-06-15 wrapper around isaac (see
* http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
* wrapper around isaac
* http://www.burtleburtle.net/bob/rand/isaacafa.html
*/

#include "fastrand.h"
Expand All @@ -36,7 +34,7 @@ static randctx is_ctx;
void fastrand_seed(unsigned int seed)
{
int i;

srandom(seed);
for (i=0; i<RANDSIZ; i++)
is_ctx.randrsl[i]=random();
Expand Down
8 changes: 4 additions & 4 deletions src/core/rand/fastrand.h
@@ -1,5 +1,5 @@
/*
* fast pseudo random generation
* fast pseudo random generation
*
* Copyright (C) 2007 iptelorg GmbH
*
Expand All @@ -14,9 +14,9 @@
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* 2007-06-15 wrapper around isaac (see
* http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
*/
/* wrapper around isaac
* http://www.burtleburtle.net/bob/rand/isaacafa.html
*/

#ifndef _fastrand_h
Expand Down
2 changes: 1 addition & 1 deletion src/core/rand/isaac/rand.c
Expand Up @@ -79,7 +79,7 @@ word flag;
mix(a,b,c,d,e,f,g,h);
}

if (flag)
if (flag)
{
/* initialize using the contents of r[] as the seed */
for (i=0; i<RANDSIZ; i+=8)
Expand Down

0 comments on commit 572acbc

Please sign in to comment.