Changeset 16991 for titan/titan/global.h


Ignore:
Timestamp:
07/06/12 17:07:48 (11 years ago)
Author:
nit
Message:

[titan] add random funktion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r16960 r16991  
    11#ifndef GLOBAL_H
    22#define GLOBAL_H
     3
     4int getrandom(int max)
     5{
     6        srand(time(NULL));
     7        return (rand() % max);
     8}
    39
    410//check if swap is in flash(1) or not(0)
Note: See TracChangeset for help on using the changeset viewer.