import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs' ; import { Entropy , IEntropyGenerator } from '../entropy/IEntropyGenerator' ; @ Injectable ( { providedIn : 'root' } ) export class DummyEntropyService implements IEntropyGenerator { public start ( ) { return Promise . resolve ( ) ; } public stop ( ) { return Promise . resolve ( ) ; } public getEntropyUpdateObservable ( ) { return new Observable ( ( observer ) => { observer . next ( { entropyHex : '' } ) ; } ) ; } public getCollectedEntropyPercentage ( ) { return 0 ; } }