[sr-dev] git:master:572acbca: core: rand - removed history from files

Daniel-Constantin Mierla miconda at gmail.com
Sun May 21 12:06:54 CEST 2017


Module: kamailio
Branch: master
Commit: 572acbca5c9e1d04efd687a88ff272c00d956425
URL: https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c00d956425

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-05-21T12:06:44+02:00

core: rand - removed history from files

---

Modified: src/core/rand/fastrand.c
Modified: src/core/rand/fastrand.h
Modified: src/core/rand/isaac/rand.c

---

Diff:  https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c00d956425.diff
Patch: https://github.com/kamailio/kamailio/commit/572acbca5c9e1d04efd687a88ff272c00d956425.patch

---

diff --git a/src/core/rand/fastrand.c b/src/core/rand/fastrand.c
index 757e08dcae..3af12f3229 100644
--- a/src/core/rand/fastrand.c
+++ b/src/core/rand/fastrand.c
@@ -1,5 +1,5 @@
 /*
- * fast pseudo random generation 
+ * fast pseudo random generation
  *
  * Copyright (C) 2007 iptelorg GmbH
  *
@@ -16,10 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 /*
- *History:
- *--------
- *  2007-06-15  wrapper around isaac (see 
- *              http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
+ * wrapper around isaac
+ *  http://www.burtleburtle.net/bob/rand/isaacafa.html
  */
 
 #include "fastrand.h"
@@ -36,7 +34,7 @@ static randctx is_ctx;
 void fastrand_seed(unsigned int seed)
 {
 	int i;
-	
+
 	srandom(seed);
 	for (i=0; i<RANDSIZ; i++)
 		is_ctx.randrsl[i]=random();
diff --git a/src/core/rand/fastrand.h b/src/core/rand/fastrand.h
index c97232ebff..38bb99e9fd 100644
--- a/src/core/rand/fastrand.h
+++ b/src/core/rand/fastrand.h
@@ -1,5 +1,5 @@
 /*
- * fast pseudo random generation 
+ * fast pseudo random generation
  *
  * Copyright (C) 2007 iptelorg GmbH
  *
@@ -14,9 +14,9 @@
  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- *  2007-06-15  wrapper around isaac (see 
- *              http://www.burtleburtle.net/bob/rand/isaacafa.html) (andrei)
+ */
+/* wrapper around isaac
+ *    http://www.burtleburtle.net/bob/rand/isaacafa.html
  */
 
 #ifndef _fastrand_h
diff --git a/src/core/rand/isaac/rand.c b/src/core/rand/isaac/rand.c
index 63babc7218..4665b38df9 100644
--- a/src/core/rand/isaac/rand.c
+++ b/src/core/rand/isaac/rand.c
@@ -79,7 +79,7 @@ word     flag;
      mix(a,b,c,d,e,f,g,h);
    }
 
-   if (flag) 
+   if (flag)
    {
      /* initialize using the contents of r[] as the seed */
      for (i=0; i<RANDSIZ; i+=8)




More information about the sr-dev mailing list