projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MT29F NAND driver: implement bad block handling and remapping.
[bertos.git]
/
bertos
/
sec
/
prng
/
isaac.c
diff --git
a/bertos/sec/prng/isaac.c
b/bertos/sec/prng/isaac.c
index f3320a5469fbe3ff426a2e566d1b7ab527bf34f0..86c162700369b8f7b99366ccef5913c8c6601d45 100644
(file)
--- a/
bertos/sec/prng/isaac.c
+++ b/
bertos/sec/prng/isaac.c
@@
-48,6
+48,7
@@
MODIFIED:
#include "isaac.h"
#include <sec/prng.h>
#include "isaac.h"
#include <sec/prng.h>
+#include <sec/util.h>
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <string.h>
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <string.h>
@@
-56,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; \