projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
menu: avoid starving other processes in menu_handle()
[bertos.git]
/
bertos
/
sec
/
prng
/
isaac.c
diff --git
a/bertos/sec/prng/isaac.c
b/bertos/sec/prng/isaac.c
index 6c0ddc1cb3f453550da79bad842431d17a71dfcb..86c162700369b8f7b99366ccef5913c8c6601d45 100644
(file)
--- a/
bertos/sec/prng/isaac.c
+++ b/
bertos/sec/prng/isaac.c
@@
-57,7
+57,7
@@
typedef uint32_t ub4;
typedef uint16_t ub2;
typedef uint8_t ub1;
typedef uint16_t ub2;
typedef uint8_t ub1;
-#define ind(mm,x) (*(ub4 *)((
ub1 *
)(mm) + ((x) & ((CONFIG_ISAAC_RANDSIZ-1)<<2))))
+#define ind(mm,x) (*(ub4 *)((
size_t
)(mm) + ((x) & ((CONFIG_ISAAC_RANDSIZ-1)<<2))))
#define rngstep(mix,a,b,mm,m,m2,r,x) \
{ \
x = *m; \
#define rngstep(mix,a,b,mm,m,m2,r,x) \
{ \
x = *m; \