diff liboctave/numeric/randmtzig.cc @ 27933:863ae57eee69

maint: Use Octave coding conventions in liboctave/ * Array-C.cc, Array-d.cc, Array-f.cc, MSparse.cc, Sparse.cc, dim-vector.h, xerbla.cc, aepbalance.cc, eigs-base.cc, gepbalance.cc, oct-fftw.cc, randmtzig.cc, mx-inlines.cc, lo-sysdep.cc, base-list.h, cmd-edit.h, lo-regexp.cc, oct-atomic.h, oct-binmap.h, oct-inttypes.cc, oct-inttypes.h, quit.h, url-transfer.cc: Use Octave coding conventions in liboctave.
author Rik <rik@octave.org>
date Sat, 11 Jan 2020 12:53:20 -0800
parents bd51beb6205e
children a61b651914d6 0a5b15007766
line wrap: on
line diff
--- a/liboctave/numeric/randmtzig.cc	Fri Jan 10 17:25:12 2020 -0800
+++ b/liboctave/numeric/randmtzig.cc	Sat Jan 11 12:53:20 2020 -0800
@@ -224,7 +224,7 @@
     for (; k; k--)
       {
         state[i] = (state[i] ^ ((state[i-1] ^ (state[i-1] >> 30)) * 1664525UL))
-          + init_key[j] + j; /* non linear */
+                   + init_key[j] + j; /* non linear */
         state[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
         i++;
         j++;
@@ -239,7 +239,7 @@
     for (k = MT_N - 1; k; k--)
       {
         state[i] = (state[i] ^ ((state[i-1] ^ (state[i-1] >> 30)) * 1566083941UL))
-          - i; /* non linear */
+                   - i; /* non linear */
         state[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
         i++;
         if (i >= MT_N)
@@ -269,7 +269,7 @@
             if (std::fread (word, 4, 1, urandom) != 1)
               break;
             entropy[n++] = word[0] + (word[1]<<8) + (word[2]<<16)
-              + (static_cast<uint32_t> (word[3])<<24);
+                           + (static_cast<uint32_t> (word[3])<<24);
           }
         std::fclose (urandom);
       }