我在网上看资料说guid的后48bit为网卡的mac地址,如果这样岂不是都是同一个网卡生成的guid的后48bit都相同,但是事实又不是如此。哪位高手可以解答这个疑惑,急!!!!!

解决方案 »

  1.   

    ['{52EFE145-A59F-4E7F-A226-AD036F79B6CE}']
    ['{8496D10B-E1B6-4CED-80F4-B0C2B34C1FA4}']
    ['{43A7AC69-CAFE-488B-A20E-9DD5734845E7}']当然不是了,我连着生成三个,如果是那就应该一样了
      

  2.   

    >>我在网上看资料说guid的后48bit为网卡的mac地址
    有部分取自 网卡的mac地址 計算而已, 還有當前時間!
      

  3.   

    是根据你的硬件,系统时间,好多 因素生成的,不是单纯有个网卡就一样了,不过MICRSOFT保证是可以有全球唯一的,
      

  4.   

    没有人能解释以下guid的后48bit是如何生成的吗?如果按照资料所说的后48bit是网卡mac地址,那为什么同一台机器生成guid后48位都不同,是资料有误还是我的理解有误?
      

  5.   

    不是太清楚,这是guid各个部分比较完整的解释:
    time_low  unsigned long  0-3  The low field of the timestamp.  
    time_mid  unsigned short  4-5  The middle field of the timestamp.  
    time_hi_and_version  unsigned short  6-7  The high field of the timestamp multiplexed with the version number.  
    clock_seq_hi_and_reserved  unsigned small  8  The high field of the clock sequence multiplexed with the variant.  
    clock_seq_low  unsigned small  9  The low field of the clock sequence.  
    node  character  10-15  The spatially unique node identifier.  
    按照这个说法guid的10-15个字节应该就是网卡的mac地址,但实际上这个几个位数是会变化,难道我们得出的guid是通过再一层换算的?
      

  6.   

    不单单是mac地址,还有当时烧进去的时间.你说的48bit是12位16进制的转化成的.