Skip to main content
. 2022 Oct 21;22(20):8046. doi: 10.3390/s22208046
Algorithm 1. Procedure A.
Procedure (A): gen:randnLA,s:seed
Input: nL,seed, s:seed
Output: random number, R
1. Get node MAC address (48 bits), nLA
2. Set random seed matrix seed i∗k
3. Computer, s:seed ∀ nici,τ; ni−sender, ci−channel id, τ−Session id
            s:seed=nLA||seed ix∗kx
      n_ri=rands:seedTN; T−Timestamp , N−Nonce
4. Call the SHA-3 (512 Bits) function and do
               R=Sha_3512nri
5. Start binary bit string computation,
        Rb=tr_binR; tr_bin−Bit truncation
6. Redo for all ni.
7. Construct binary Rb matrix, Rbi∗k
8. Generate random slot bits, R=rand_electRbi∗k
9. Store Ri in Key s iteratively
10. Recall the steps from 1 to 10.
End of Procedure (A)