mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
fix two bits never being set
This commit is contained in:
parent
c6d3759373
commit
36cc6cc9d6
1 changed files with 4 additions and 2 deletions
|
@ -90,8 +90,10 @@ dvc_getMQTTDevID( XW_DUtilCtxt* dutil, XWEnv xwe, MQTTDevID* devID )
|
|||
// XP_LOGFF( "len: %d; sizeof(tmp): %d", len, sizeof(tmp) );
|
||||
if ( len != sizeof(tmp) ) { /* not found, or bogus somehow */
|
||||
tmp = XP_RANDOM();
|
||||
tmp <<= 32;
|
||||
tmp |= XP_RANDOM();
|
||||
tmp <<= 27;
|
||||
tmp ^= XP_RANDOM();
|
||||
tmp <<= 27;
|
||||
tmp ^= XP_RANDOM();
|
||||
dutil_storePtr( dutil, xwe, MQTT_DEVID_KEY, &tmp, sizeof(tmp) );
|
||||
#ifdef DEBUG
|
||||
XP_UCHAR buf[32];
|
||||
|
|
Loading…
Reference in a new issue