mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
src: fix the position of the child serial
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
1624c99dc5
commit
0446fd5edf
@ -367,9 +367,9 @@ int get_random_bytes(unsigned char *buf, int len, unsigned char server_id, unsig
|
||||
if(fd == -1) return ret;
|
||||
|
||||
*(buf + 12) = server_id;
|
||||
*(buf + 14) = child_serial;
|
||||
*(buf + 13) = child_serial;
|
||||
|
||||
if(readFromEntropyPool(fd, buf+14+1, len-14-1) != len-14-1){
|
||||
if(readFromEntropyPool(fd, buf+13+1, len-13-1) != len-13-1){
|
||||
syslog(LOG_PRIORITY, "%s: %s", ERR_CANNOT_READ_FROM_POOL, RANDOM_POOL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user