modify random

This commit is contained in:
NIIBE Yutaka
2011-05-12 09:26:40 +09:00
parent 571e7af387
commit c196992c76
3 changed files with 30 additions and 11 deletions

View File

@@ -290,10 +290,11 @@ extern uint8_t admin_authorized;
#define SIZE_PW_STATUS_BYTES 7
/* 32-byte random bytes */
extern uint32_t get_random (void);
/* 16-byte random bytes */
extern const uint8_t *random_bytes_get (void);
extern void random_bytes_free (const uint8_t *);
/* 4-byte salt */
extern uint32_t get_salt (void);
extern uint32_t hardclock (void);