~ubuntu-branches/ubuntu/trusty/apr-util/trusty-proposed

« back to all changes in this revision

Viewing changes to crypto/getuuid.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur, Ryan Niebur, Stefan Fritsch
  • Date: 2009-03-26 22:25:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090326222548-w6n07bfofjy0823w
Tags: 1.3.4+dfsg-1
[ Ryan Niebur ]
* New upstream version
* add me to Uploaders
* add repack.sh
* update to libdb4.7-dev (Closes: #519818)
* Debian policy 3.8.1
* remove *.dirs, they're not needed
* lintian overrides for the symbols file depending on different
  packages, we have those "unusual circumstances" :)
  - debhelper 6 (needed for dh_lintian)
* remove build/apr_common.m4 in the clean target, it gets modified
  during build and is automatically generated
* switch the libaprutil1-dbg package to the debug section
* don't output ldap libs by default from apu-config
* upload to unstable this time

[ Stefan Fritsch ]
* Fix description for libaprutil1-dbg (closes: #508145).
* Recognize DEB_BUILD_OPTIONS=nocheck in addition to notest (closes: #515352).
* Make dpkg-shlibdeps automatically generate the needed dependencies for
  programs that use apr_ldap_init() or apr_dbd_init().
  For dbd, we will genreate an ORed dependency on all libaprutil1-dbd-*
  packages, using libaprutil1-dbd-mysql as default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
static void get_pseudo_node_identifier(unsigned char *node)
103
103
{
104
104
    get_random_info(node);
105
 
    node[0] |= 0x01;                    /* this designates a random node ID */
 
105
    node[0] |= 0x01;                    /* this designates a random multicast node ID */
106
106
}
107
107
 
108
108
static void get_system_time(apr_uint64_t *uuid_time)
131
131
 
132
132
    /* crap. this isn't crypto quality, but it will be Good Enough */
133
133
 
134
 
    get_system_time(&time_now);
 
134
    time_now = apr_time_now();
135
135
    srand((unsigned int)(((time_now >> 32) ^ time_now) & 0xffffffff));
136
136
 
137
137
    return rand() & 0x0FFFF;