Ignore:
Timestamp:
09/23/10 11:25:34 (10 years ago)
Author:
dingo35
Message:

cccam+newcamd: Move fast_rnd to oscam-simples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-newcamd.c

    r3181 r3188  
    22#include "globals.h"
    33extern struct s_reader *reader;
     4extern unsigned int seed;
    45
    56#define CWS_NETMSGSIZE 272
     
    450451  }
    451452  return(rc);
    452 }
    453 
    454 static unsigned int seed;
    455 static uchar fast_rnd()
    456 {
    457   unsigned int offset = 12923;
    458   unsigned int multiplier = 4079;
    459 
    460   seed = seed * multiplier + offset;
    461   return (uchar)(seed % 0xFF);
    462453}
    463454
Note: See TracChangeset for help on using the changeset viewer.