LCOV - code coverage report
Current view: top level - ballet/poh - fd_poh.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 12 12 100.0 %
Date: 2025-07-06 04:53:02 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      303021 :   fd_sha256_hash_32_repeated( poh, poh, n );
       7      303021 :   return poh;
       8      303021 : }
       9             : 
      10             : void *
      11             : fd_poh_mixin( void *        FD_RESTRICT poh,
      12          12 :               uchar const * FD_RESTRICT mixin ) {
      13          12 :   fd_sha256_t sha;
      14          12 :   fd_sha256_init( &sha );
      15          12 :   fd_sha256_append( &sha, poh,   FD_SHA256_HASH_SZ );
      16          12 :   fd_sha256_append( &sha, mixin, FD_SHA256_HASH_SZ );
      17          12 :   fd_sha256_fini( &sha, poh );
      18          12 :   return poh;
      19          12 : }

Generated by: LCOV version 1.14