OSDN Git Service
(root)
/
coroid
/
inqubus.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ソースの文字コードと改行コードを修正
[coroid/inqubus.git]
/
vhook
/
util.c
1
#include "mydef.h"
2
#include "util.h"
3
4
#include <stdlib.h>
5
/*乱数*/
6
int rnd(){
7
static int Seed = 23573;
8
int result;
9
Seed *= 214013;
10
Seed += 2531011; // ->次に呼び出されたときのseedに使う
11
result = Seed;
12
result = result >> 0x10;
13
return result;
14
}