mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
entropy should be unsigned
This commit is contained in:
parent
3d57f2ae67
commit
bcdd316b86
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ lutil_detach LDAP_P((
|
|||
/* entropy.c */
|
||||
LDAP_LUTIL_F( int )
|
||||
lutil_entropy LDAP_P((
|
||||
char *buf,
|
||||
unsigned char *buf,
|
||||
ber_len_t nbytes ));
|
||||
|
||||
/* passwd.c */
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
* This routinue should be extended to support additional sources
|
||||
* of entropy.
|
||||
*/
|
||||
int lutil_entropy( char *buf, ber_len_t nbytes )
|
||||
int lutil_entropy( unsigned char *buf, ber_len_t nbytes )
|
||||
{
|
||||
if( nbytes == 0 ) return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue