LCOV - code coverage report
Current view: top level - ballet/poh - fd_poh.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 14 14 100.0 %
Date: 2024-11-13 11:58:15 Functions: 2 2 100.0 %

          Line data    Source code
       1             : #include "fd_poh.h"
       2             : 
       3             : void *
       4             : fd_poh_append( void * poh,
       5      303021 :                ulong  n ) {
       6   315375015 :   while( n-- ) {
       7   315071994 :     fd_sha256_hash_32( poh, poh );
       8   315071994 :   }
       9      303021 :   return poh;
      10      303021 : }
      11             : 
      12             : void *
      13             : fd_poh_mixin( void *        FD_RESTRICT poh,
      14          12 :               uchar const * FD_RESTRICT mixin ) {
      15          12 :   fd_sha256_t sha;
      16          12 :   fd_sha256_init( &sha );
      17          12 :   fd_sha256_append( &sha, poh,   FD_SHA256_HASH_SZ );
      18          12 :   fd_sha256_append( &sha, mixin, FD_SHA256_HASH_SZ );
      19          12 :   fd_sha256_fini( &sha, poh );
      20          12 :   return poh;
      21          12 : }

Generated by: LCOV version 1.14