~ubuntu-branches/ubuntu/saucy/filezilla/saucy-proposed

« back to all changes in this revision

Viewing changes to src/putty/sshrand.c

  • Committer: Package Import Robot
  • Author(s): Adrien Cunin
  • Date: 2011-12-23 22:57:59 UTC
  • mfrom: (1.1.29)
  • Revision ID: package-import@ubuntu.com-20111223225759-2zxn4dlhkaedq219
Tags: 3.5.2-1ubuntu1
* Sync from Debian unstable
* Re-added debian/patches/02_use-decimal-si-by-default.patch in order to
  comply with UnitsPolicy (the patch got lost in the previous Ubuntu upload)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
#include "putty.h"
6
6
#include "ssh.h"
 
7
#include <assert.h>
7
8
 
8
9
/* Collect environmental noise every 5 minutes */
9
10
#define NOISE_REGULAR_INTERVAL (5*60*TICKSPERSEC)
225
226
void random_unref(void)
226
227
{
227
228
    random_active--;
 
229
    assert(random_active >= 0);
 
230
    if (random_active) return;
 
231
 
 
232
    expire_timer_context(&pool);
228
233
}
229
234
 
230
235
int random_byte(void)