diff libgsmfrp/internal.h @ 108:3b64f255689a

libgsmfrp: factor out PRNG into its own module, in preparation for using it as part of speech muting too
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Nov 2022 04:00:18 +0000
parents 286d5f097eb4
children f081a6850fb5
line wrap: on
line diff
--- a/libgsmfrp/internal.h	Sun Nov 27 21:02:07 2022 +0000
+++ b/libgsmfrp/internal.h	Mon Nov 28 04:00:18 2022 +0000
@@ -24,6 +24,8 @@
 /* we use the same LFSR PRNG for CN as ETSI EFR implementation */
 #define PN_INITIAL_SEED 0x70816958L   /* Pseudo noise generator seed value  */
 
-/* internal function */
+/* internal functions */
 extern void gsmfr_preproc_gen_cn(struct gsmfr_preproc_state *state,
 				 gsm_byte *frame);
+extern uint16_t gsmfr_preproc_prng(struct gsmfr_preproc_state *state,
+				   uint16_t no_bits);