projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfixes + improvements
[physik/nlsop.git]
/
random.c
diff --git
a/random.c
b/random.c
index
cb3e900
..
468a3a5
100644
(file)
--- a/
random.c
+++ b/
random.c
@@
-56,7
+56,7
@@
u32 get_rand(u32 max)
if(c_ptr>=b_ptr+BUFSIZE)
{
#ifdef MORE_PRINTF
if(c_ptr>=b_ptr+BUFSIZE)
{
#ifdef MORE_PRINTF
- printf("getting another %d bytes of random data ...",BUFSIZE);
+ printf("getting another %d bytes of random data ...
\n
",BUFSIZE);
#endif
if(read(rand_fd,b_ptr,BUFSIZE*sizeof(u32))<BUFSIZE*sizeof(u32))
{
#endif
if(read(rand_fd,b_ptr,BUFSIZE*sizeof(u32))<BUFSIZE*sizeof(u32))
{
@@
-67,7
+67,7
@@
u32 get_rand(u32 max)
}
c_ptr=b_ptr;
#ifdef MORE_PRINTF
}
c_ptr=b_ptr;
#ifdef MORE_PRINTF
- printf("
done
\n");
+ printf("
got it!
\n");
#endif
}
#endif
}