Add zrtp_randstr2
Modified-by: Travis Cross <tc@traviscross.com> Signed-off-by: Travis Cross <tc@traviscross.com>
This commit is contained in:
parent
4ba74ad38a
commit
5af0af90ed
|
@ -956,6 +956,8 @@ int zrtp_entropy_add(zrtp_global_t* zrtp, const unsigned char *buffer, uint32_t
|
|||
*/
|
||||
int zrtp_randstr(zrtp_global_t* zrtp, unsigned char *buffer, uint32_t length);
|
||||
|
||||
int zrtp_randstr2(unsigned char *buffer, uint32_t length);
|
||||
|
||||
/* \} */
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
|
@ -343,3 +343,9 @@ int zrtp_randstr(zrtp_global_t* zrtp, unsigned char *buffer, uint32_t length)
|
|||
|
||||
return generated;
|
||||
}
|
||||
|
||||
int zrtp_randstr2(unsigned char *buffer, uint32_t length) {
|
||||
zrtp_global_t zrtp;
|
||||
zrtp.rand_initialized = 0;
|
||||
return zrtp_randstr(&zrtp, buffer, length);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue