home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b072221
)
Removed unused variable start value.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 01:51:40 +0000
(
03:51
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 01:51:40 +0000
(
03:51
+0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index afe73cece0e22c0d5fdced77b306ec591a9d6e44..e02884594073b80ff9f8746547bd5855f23912b0 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-12,7
+12,7
@@
uint16_t rrand(char use_seed, uint32_t new_seed) {
// Pseudo-random number generator (LGC algorithm). Use instead of rand() to ensure portable predictability.
- static uint32_t seed
= 0
;
+ static uint32_t seed;
if (0 != use_seed)
seed = new_seed;
seed = ((seed * 1103515245) + 12345) % 2147483648; // Values as recommended by POSIX.1-2001 (see rand(3)).