git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 3f8d4c1d875384353d1dd6a42ddf440e30659a48
parent a84a5021c54b79bacf505210221f3126eddc1a74
Author: Toxa <untoxa@mail.ru>
Date:   Sat, 25 Dec 2021 00:28:36 +0300

make rand.h a bit closer to standard

Diffstat:
Mgbdk-lib/include/rand.h7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gbdk-lib/include/rand.h b/gbdk-lib/include/rand.h @@ -30,11 +30,14 @@ void initrand(uint16_t seed) OLDCALL; void initrand(uint16_t seed) Z88DK_FASTCALL; #endif +#define RAND_MAX 255 +#define RANDW_MAX 65535 + /** Returns a random byte (8 bit) value. @ref initrand() should be used to initialize the random number generator before using rand() */ -int8_t rand() OLDCALL; +uint8_t rand() OLDCALL; /** Returns a random word (16 bit) value. @@ -61,6 +64,6 @@ void initarand(uint16_t seed) Z88DK_FASTCALL; @ref initarand() should be used to initialize the random number generator before using arand() */ -int8_t arand() OLDCALL; +uint8_t arand() OLDCALL; #endif

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.